mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 07:39:40 +00:00
In-console nonexistent class fix
This commit is contained in:
parent
dd11ae04ee
commit
3bd545ed8e
1 changed files with 2 additions and 1 deletions
|
@ -86,11 +86,12 @@ void ToolTips::onFrame(float frameDuration)
|
||||||
|| (mWindowManager->getMode() == GM_Inventory)))
|
|| (mWindowManager->getMode() == GM_Inventory)))
|
||||||
{
|
{
|
||||||
mFocusObject = MWBase::Environment::get().getWorld()->getFacedObject();
|
mFocusObject = MWBase::Environment::get().getWorld()->getFacedObject();
|
||||||
const MWWorld::Class& objectclass = MWWorld::Class::get (mFocusObject);
|
|
||||||
|
|
||||||
if (mFocusObject.isEmpty ())
|
if (mFocusObject.isEmpty ())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
const MWWorld::Class& objectclass = MWWorld::Class::get (mFocusObject);
|
||||||
|
|
||||||
IntSize tooltipSize;
|
IntSize tooltipSize;
|
||||||
if ((!objectclass.hasToolTip(mFocusObject))&&(mWindowManager->getMode() == GM_Console))
|
if ((!objectclass.hasToolTip(mFocusObject))&&(mWindowManager->getMode() == GM_Console))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue