From 64782fb2548cbee4c4bfccaed91d3b0ebbcf0571 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 2 May 2011 22:23:36 +1200 Subject: [PATCH] use ToList rather than List.ctor --- OpenRA.Game/Traits/World/Shroud.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Traits/World/Shroud.cs b/OpenRA.Game/Traits/World/Shroud.cs index e7018ffb01..21b10feb4d 100644 --- a/OpenRA.Game/Traits/World/Shroud.cs +++ b/OpenRA.Game/Traits/World/Shroud.cs @@ -120,7 +120,7 @@ namespace OpenRA.Traits // No longer our ally; remove unit vis if (oldStance == Stance.Ally) { - var toRemove = new List(vis.Select(a => a.Key).Where(a => a.Owner == player)); + var toRemove = vis.Select(a => a.Key).Where(a => a.Owner == player).ToList(); foreach (var a in toRemove) RemoveActor(a); }