diff --git a/apps/openmw/mwgui/tooltips.cpp b/apps/openmw/mwgui/tooltips.cpp index 3306ea5c2..039df2269 100644 --- a/apps/openmw/mwgui/tooltips.cpp +++ b/apps/openmw/mwgui/tooltips.cpp @@ -177,7 +177,8 @@ void ToolTips::onFrame(float frameDuration) MWWorld::Ptr item = MWBase::Environment::get().getWorld ()->getCharacterPreviewItemSelected (realX, realY); mFocusObject = item; - tooltipSize = getToolTipViaPtr(false); + if (!mFocusObject.isEmpty ()) + tooltipSize = getToolTipViaPtr(false); } else if (type == "Spell") { diff --git a/files/mygui/openmw_inventory_window.layout b/files/mygui/openmw_inventory_window.layout index 86dee558f..3a60916f7 100644 --- a/files/mygui/openmw_inventory_window.layout +++ b/files/mygui/openmw_inventory_window.layout @@ -18,6 +18,7 @@ +