mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 11:39:44 +00:00
Merge pull request #3056 from akortunov/master
Reset watched stats upon reload or new game start
This commit is contained in:
commit
8f996d0bce
2 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,8 @@ namespace MWGui
|
|||
|
||||
void watchActor(const MWWorld::Ptr& ptr);
|
||||
MWWorld::Ptr getWatchedActor() const { return mWatched; }
|
||||
|
||||
void forceUpdate() { mWatchedStatsEmpty = true; }
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -495,6 +495,8 @@ namespace MWGui
|
|||
}
|
||||
else
|
||||
allow(GW_ALL);
|
||||
|
||||
mStatsWatcher->forceUpdate();
|
||||
}
|
||||
|
||||
WindowManager::~WindowManager()
|
||||
|
|
Loading…
Reference in a new issue