NetworkServer.DestroyObject: removed ClientScene.SetLocalObject call. It only sets it to null, which is pointless because the first line in DestroyObject removes it from spawned dictionary already.

This commit is contained in:
vis2k 2018-12-16 19:18:27 +01:00
parent 4b3dd1004e
commit 9c8f6bb5af

View File

@ -1048,7 +1048,6 @@ static void DestroyObject(NetworkIdentity uv, bool destroyServerObject)
if (NetworkClient.active && s_LocalClientActive)
{
uv.OnNetworkDestroy();
ClientScene.SetLocalObject(msg.netId, null);
}
// when unspawning, dont destroy the server's object