1
0
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:
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)