fix: potential null reference exception with debug logging

This commit is contained in:
Paul Pacheco 2020-01-01 19:34:55 -06:00
parent 2668b17162
commit 33493a0137

View File

@ -578,7 +578,7 @@ static NetworkIdentity SpawnSceneObject(SpawnMessage msg)
}
}
if (LogFilter.Debug) Debug.Log("Client spawn for [netId:" + msg.netId + "] [sceneId:" + msg.sceneId + "] obj:" + spawnedId.gameObject.name);
if (LogFilter.Debug) Debug.Log("Client spawn for [netId:" + msg.netId + "] [sceneId:" + msg.sceneId + "] obj:" + spawnedId);
return spawnedId;
}