We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb00f73 + 382b46d commit 2fc16fdCopy full SHA for 2fc16fd
Source/Runtime/Player/PlayerPersistence/ClientSimPlayerObjectStorage.cs
@@ -148,6 +148,7 @@ private void Decode()
148
ClientSimPlayer player = _player.GetClientSimPlayer();
149
foreach (GameObject persistantObject in player.PlayerPersistenceObjects)
150
{
151
+ if (!persistantObject) continue;
152
IClientSimNetworkId networkId = persistantObject.GetComponent<IClientSimNetworkId>();
153
if (networkId == null) continue;
154
int id = networkId.GetNetworkId();
@@ -177,4 +178,4 @@ public void LateUpdate()
177
178
}
179
#endif
180
-}
181
+}
0 commit comments