mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
In-console nonexistent class fix
This commit is contained in:
parent
dd11ae04ee
commit
3bd545ed8e
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user