Fix sending replication message to newly connected clients for objects that were not spawned

#4029
This commit is contained in:
2026-03-31 13:13:33 +02:00
parent c6204fc274
commit b2d1d0f1d9
@@ -1863,7 +1863,7 @@ void NetworkInternal::NetworkReplicatorClientConnected(NetworkClient* client)
{ {
auto& item = it->Item; auto& item = it->Item;
ScriptingObject* obj = item.Object.Get(); ScriptingObject* obj = item.Object.Get();
if (!obj || !item.Spawned || item.Role != NetworkObjectRole::OwnedAuthoritative) if (!obj || item.Role != NetworkObjectRole::OwnedAuthoritative)
continue; continue;
// Mark this client as missing cached data // Mark this client as missing cached data