Fix console reference label not resetting when loading save

deque
scrawl 11 years ago
parent b158919c4b
commit 604d5ac000

@ -435,4 +435,10 @@ namespace MWGui
{
setSelectedObject(MWWorld::Ptr());
}
void Console::resetReference()
{
ReferenceInterface::resetReference();
setSelectedObject(MWWorld::Ptr());
}
}

@ -66,6 +66,8 @@ namespace MWGui
void executeFile (const std::string& path);
virtual void resetReference ();
protected:
virtual void onReferenceUnavailable();

@ -17,7 +17,7 @@ namespace MWGui
void checkReferenceAvailable(); ///< closes the window, if the MW-reference has become unavailable
void resetReference() { mPtr = MWWorld::Ptr(); mCurrentPlayerCell = NULL; }
virtual void resetReference() { mPtr = MWWorld::Ptr(); mCurrentPlayerCell = NULL; }
protected:
virtual void onReferenceUnavailable() = 0; ///< called when reference has become unavailable

Loading…
Cancel
Save