mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 09:39:43 +00:00
Increment revision on clearing PtrRegistry
Setting it to 0 may not lead to the change detected by clients. Potentially mRevision may already have value 0. For example on overflow.
This commit is contained in:
parent
a581e394b4
commit
86db640c8b
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ namespace MWWorld
|
|||
{
|
||||
mIndex.clear();
|
||||
mLastGenerated = ESM::RefNum{};
|
||||
mRevision = 0;
|
||||
++mRevision;
|
||||
}
|
||||
|
||||
void insert(const Ptr& ptr)
|
||||
|
|
Loading…
Reference in a new issue