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:
parent
b158919c4b
commit
604d5ac000
3 changed files with 9 additions and 1 deletions
|
@ -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…
Reference in a new issue