1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-29 22:20:33 +00:00

check MWWorld::Ptr != NULL for MWGui ItemPtr tooltips

This commit is contained in:
Finbar Crago 2018-06-26 13:41:53 +10:00
parent 186ec8c50f
commit 43c9fd4cec

View File

@ -191,6 +191,9 @@ namespace MWGui
else if (type == "ItemPtr")
{
mFocusObject = *focus->getUserData<MWWorld::Ptr>();
if (!mFocusObject)
return;
tooltipSize = getToolTipViaPtr(mFocusObject.getRefData().getCount(), false, checkOwned());
}
else if (type == "ItemModelIndex")