diff --git a/Mirror/Runtime/NetworkServer.cs b/Mirror/Runtime/NetworkServer.cs index 4e7236bc5..5831f37f1 100644 --- a/Mirror/Runtime/NetworkServer.cs +++ b/Mirror/Runtime/NetworkServer.cs @@ -1005,9 +1005,10 @@ static void DestroyObject(GameObject obj) } NetworkIdentity identity; - if (!GetNetworkIdentity(obj, out identity)) return; - - DestroyObject(identity, true); + if (GetNetworkIdentity(obj, out identity)) + { + DestroyObject(identity, true); + } } static void DestroyObject(NetworkIdentity identity, bool destroyServerObject)