1
0
Fork 0
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:
elsid 2023-05-28 12:38:01 +02:00
parent a581e394b4
commit 86db640c8b
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -34,7 +34,7 @@ namespace MWWorld
{
mIndex.clear();
mLastGenerated = ESM::RefNum{};
mRevision = 0;
++mRevision;
}
void insert(const Ptr& ptr)