Fix sending replication message to newly connected clients for objects that were not spawned
#4029
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user