Various minor fixes to networking

This commit is contained in:
Wojtek Figat
2023-02-10 12:00:04 +01:00
parent c785a17ca8
commit a099bd25f6
3 changed files with 18 additions and 0 deletions

View File

@@ -1474,6 +1474,10 @@ void NetworkInternal::OnNetworkMessageObjectSpawn(NetworkEvent& event, NetworkCl
if (!obj->IsRegistered())
obj->RegisterObject();
const NetworkReplicatedObject* parent = ResolveObject(msgDataItem.ParentId);
if (!parent && msgDataItem.ParentId.IsValid())
{
NETWORK_REPLICATOR_LOG(Error, "[NetworkReplicator] Failed to find object {} as parent to spawned object", msgDataItem.ParentId.ToString());
}
// Add object to the list
NetworkReplicatedObject item;