NetworkConnection.DestroyOwnedObjects clears the hashset afterwards

This commit is contained in:
vis2k 2020-01-08 11:04:57 +01:00
parent 43030ac917
commit a2173d37db

View File

@ -383,6 +383,9 @@ internal void DestroyOwnedObjects()
NetworkServer.Destroy(netIdentity.gameObject);
}
}
// clear the hashset because we destroyed them all
clientOwnedObjects.Clear();
}
}
}