forked from mirror/openmw-tes3mp
check MWWorld::Ptr != NULL for MWGui ItemPtr tooltips
This commit is contained in:
parent
186ec8c50f
commit
43c9fd4cec
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue