mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
b900b2e00a
commit
882277f0aa
@ -64,11 +64,10 @@ void UpdateMatchObjects(NetworkMatch match, Guid oldMatch)
|
||||
{
|
||||
HashSet<NetworkMatch> matchSet = matchObjects[oldMatch];
|
||||
matchSet.Remove(match);
|
||||
|
||||
// clean up empty entries in the dict
|
||||
if (matchSet.Count == 0)
|
||||
{
|
||||
matchObjects.Remove(oldMatch);
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure this new match is in the dictionary
|
||||
|
Loading…
Reference in New Issue
Block a user