Dictionary optimization

This commit is contained in:
Eduardo Cáceres
2022-05-02 13:15:19 +02:00
committed by atlimit8
parent b71402f64d
commit 1b69ff017d

View File

@@ -371,9 +371,6 @@ namespace OpenRA.Mods.Common.UtilityCommands
} }
// Overwrite default player definitions if needed // Overwrite default player definitions if needed
if (!mapPlayers.Players.ContainsKey(section))
mapPlayers.Players.Add(section, pr);
else
mapPlayers.Players[section] = pr; mapPlayers.Players[section] = pr;
} }