diff --git a/Source/Runtime/Player/PlayerPersistence/ClientSimPlayerObjectStorage.cs b/Source/Runtime/Player/PlayerPersistence/ClientSimPlayerObjectStorage.cs index 711f488..77ea05b 100644 --- a/Source/Runtime/Player/PlayerPersistence/ClientSimPlayerObjectStorage.cs +++ b/Source/Runtime/Player/PlayerPersistence/ClientSimPlayerObjectStorage.cs @@ -148,6 +148,7 @@ private void Decode() ClientSimPlayer player = _player.GetClientSimPlayer(); foreach (GameObject persistantObject in player.PlayerPersistenceObjects) { + if (!persistantObject) continue; IClientSimNetworkId networkId = persistantObject.GetComponent(); if (networkId == null) continue; int id = networkId.GetNetworkId(); @@ -177,4 +178,4 @@ public void LateUpdate() } #endif } -} \ No newline at end of file +}