mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-24 18:39:59 +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
@ -34,7 +34,7 @@ namespace MWWorld
|
|||||||
{
|
{
|
||||||
mIndex.clear();
|
mIndex.clear();
|
||||||
mLastGenerated = ESM::RefNum{};
|
mLastGenerated = ESM::RefNum{};
|
||||||
mRevision = 0;
|
++mRevision;
|
||||||
}
|
}
|
||||||
|
|
||||||
void insert(const Ptr& ptr)
|
void insert(const Ptr& ptr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user