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

Fix console reference label not resetting when loading save

This commit is contained in:
scrawl 2014-06-12 21:46:23 +02:00
parent b158919c4b
commit 604d5ac000
3 changed files with 9 additions and 1 deletions

View file

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

View file

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

View file

@ -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