null-conditional operator

This commit is contained in:
Paul Pacheco 2019-01-30 18:33:01 -06:00
parent e15d3cdd71
commit 17eedda836

View File

@ -1038,10 +1038,7 @@ static void DestroyObject(NetworkIdentity identity, bool destroyServerObject)
if (LogFilter.Debug) { Debug.Log("DestroyObject instance:" + identity.netId); } if (LogFilter.Debug) { Debug.Log("DestroyObject instance:" + identity.netId); }
NetworkIdentity.spawned.Remove(identity.netId); NetworkIdentity.spawned.Remove(identity.netId);
if (identity.clientAuthorityOwner != null) identity.clientAuthorityOwner?.RemoveOwnedObject(identity);
{
identity.clientAuthorityOwner.RemoveOwnedObject(identity);
}
ObjectDestroyMessage msg = new ObjectDestroyMessage ObjectDestroyMessage msg = new ObjectDestroyMessage
{ {