1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-19 17:09:40 +00:00

In-console nonexistent class fix

This commit is contained in:
Glorf 2013-03-19 21:55:37 +01:00
parent dd11ae04ee
commit 3bd545ed8e

View file

@ -86,11 +86,12 @@ void ToolTips::onFrame(float frameDuration)
|| (mWindowManager->getMode() == GM_Inventory)))
{
mFocusObject = MWBase::Environment::get().getWorld()->getFacedObject();
const MWWorld::Class& objectclass = MWWorld::Class::get (mFocusObject);
if (mFocusObject.isEmpty ())
return;
const MWWorld::Class& objectclass = MWWorld::Class::get (mFocusObject);
IntSize tooltipSize;
if ((!objectclass.hasToolTip(mFocusObject))&&(mWindowManager->getMode() == GM_Console))
{