This commit is contained in:
MrGadget1024 2024-01-01 11:15:33 -05:00
parent b900b2e00a
commit 882277f0aa

View File

@ -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