mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 23:51:09 -04: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)))
|
|| (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…
x
Reference in New Issue
Block a user