From 418fc02b3f75c3e8dc93d0507f731247e9c753eb Mon Sep 17 00:00:00 2001 From: vis2k Date: Sun, 30 Dec 2018 22:08:20 +0100 Subject: [PATCH] Syntax --- Mirror/Runtime/NetworkServer.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Mirror/Runtime/NetworkServer.cs b/Mirror/Runtime/NetworkServer.cs index 8890e671a..4e7236bc5 100644 --- a/Mirror/Runtime/NetworkServer.cs +++ b/Mirror/Runtime/NetworkServer.cs @@ -985,9 +985,10 @@ static void UnSpawnObject(GameObject obj) } NetworkIdentity identity; - if (!GetNetworkIdentity(obj, out identity)) return; - - UnSpawnObject(identity); + if (GetNetworkIdentity(obj, out identity)) + { + UnSpawnObject(identity); + } } static void UnSpawnObject(NetworkIdentity identity)