Fix crash when scripting object gets deleted while it exists in NetworkReplicationHierarchy

This commit is contained in:
Wojtek Figat
2023-05-24 12:06:09 +02:00
parent 2c1f6e561a
commit 9986d62a28
2 changed files with 2 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ void NetworkReplicationNode::Update(NetworkReplicationHierarchyUpdateResult* res
}
}
}
if (targetClients)
if (targetClients && obj.Object)
{
// Replicate this frame
result->AddObject(obj.Object, targetClients);