From a4338d935027d6bb4d7ac9af4c73923c588ad84e Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Wed, 14 Oct 2015 21:06:37 +0100 Subject: [PATCH] Remove a redundant check in FindAndDeployBackupMcv. This avoids enumerating the mcvs twice. --- OpenRA.Mods.Common/AI/HackyAI.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/OpenRA.Mods.Common/AI/HackyAI.cs b/OpenRA.Mods.Common/AI/HackyAI.cs index 34cf6974b0..4bcf323ecc 100644 --- a/OpenRA.Mods.Common/AI/HackyAI.cs +++ b/OpenRA.Mods.Common/AI/HackyAI.cs @@ -867,8 +867,6 @@ namespace OpenRA.Mods.Common.AI // HACK: This needs to query against MCVs directly var mcvs = self.World.Actors .Where(a => a.Owner == Player && a.Info.HasTraitInfo() && a.Info.HasTraitInfo()); - if (!mcvs.Any()) - return; foreach (var mcv in mcvs) {