diff --git a/OpenRA.Game/Traits/World/ActorMap.cs b/OpenRA.Game/Traits/World/ActorMap.cs index 306e70d70a..8b9ab1ee98 100644 --- a/OpenRA.Game/Traits/World/ActorMap.cs +++ b/OpenRA.Game/Traits/World/ActorMap.cs @@ -49,8 +49,8 @@ namespace OpenRA.Traits // Position updates are done in one pass // to ensure consistency during a tick - List addActorPosition; - List removeActorPosition; + readonly List addActorPosition = new List(); + readonly HashSet removeActorPosition = new HashSet(); public ActorMap(World world, ActorMapInfo info) { @@ -64,9 +64,6 @@ namespace OpenRA.Traits for (var j = 0; j < rows; j++) for (var i = 0; i < cols; i++) actors[j * cols + i] = new List(); - - addActorPosition = new List(); - removeActorPosition = new List(); } public IEnumerable GetUnitsAt(CPos a)