Fix owned tooltip in the spellwindow

new-script-api
Andrei Kortunov 7 years ago
parent e2afd3690c
commit ad27e0f945

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

Loading…
Cancel
Save