From d774817b0e1164a27773c891a3d320e72ce9e70c Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 26 Jul 2010 21:35:00 +1200 Subject: [PATCH] remaining dumbness removed. --- OpenRA.Game/Traits/Mobile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Traits/Mobile.cs b/OpenRA.Game/Traits/Mobile.cs index bf30c54170..67780ec52e 100644 --- a/OpenRA.Game/Traits/Mobile.cs +++ b/OpenRA.Game/Traits/Mobile.cs @@ -209,7 +209,7 @@ namespace OpenRA.Traits } // We can enter a cell with nonshareable units only if we can crush all of them - if (Info.Crushes == null && nonshareable.Count() > 0) + if (Info.Crushes == null && nonshareable.Length > 0) return false; if (nonshareable.Length > 0 && nonshareable.Any(a => !(a.traits.Contains() &&