Fix bug in NetworkReplicator::RemoveObject

This commit is contained in:
Wojtek Figat
2024-03-29 13:03:11 +01:00
parent 09f5ac0ed6
commit 069445b94e

View File

@@ -1203,7 +1203,7 @@ void NetworkReplicator::RemoveObject(ScriptingObject* obj)
return;
ScopeLock lock(ObjectsLock);
const auto it = Objects.Find(obj->GetID());
if (it != Objects.End())
if (it == Objects.End())
return;
// Remove object from the list