Minor improvements to new replication hierarchy

This commit is contained in:
Wojtek Figat
2023-05-24 22:59:22 +02:00
parent e10aa1ff58
commit 90d633fb2d
3 changed files with 18 additions and 9 deletions

View File

@@ -1430,7 +1430,8 @@ void NetworkInternal::NetworkReplicatorUpdate()
{
ScriptingObject* obj = e.Object;
auto it = Objects.Find(obj->GetID());
ASSERT(it.IsNotEnd());
if (it.IsEnd())
continue;
auto& item = it->Item;
// Skip serialization of objects that none will receive