Fix owned tooltip in the spellwindow

This commit is contained in:
Andrei Kortunov 2017-10-06 11:38:27 +04:00
parent e2afd3690c
commit ad27e0f945

View file

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