mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-01 13:20:29 +00:00
check MWWorld::Ptr != NULL for MWGui ItemPtr tooltips
This commit is contained in:
parent
186ec8c50f
commit
43c9fd4cec
@ -191,6 +191,9 @@ namespace MWGui
|
|||||||
else if (type == "ItemPtr")
|
else if (type == "ItemPtr")
|
||||||
{
|
{
|
||||||
mFocusObject = *focus->getUserData<MWWorld::Ptr>();
|
mFocusObject = *focus->getUserData<MWWorld::Ptr>();
|
||||||
|
if (!mFocusObject)
|
||||||
|
return;
|
||||||
|
|
||||||
tooltipSize = getToolTipViaPtr(mFocusObject.getRefData().getCount(), false, checkOwned());
|
tooltipSize = getToolTipViaPtr(mFocusObject.getRefData().getCount(), false, checkOwned());
|
||||||
}
|
}
|
||||||
else if (type == "ItemModelIndex")
|
else if (type == "ItemModelIndex")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user