diff --git a/OpenRA.Mods.Common/Activities/Attack.cs b/OpenRA.Mods.Common/Activities/Attack.cs index 2ec721b818..0f3c54a7db 100644 --- a/OpenRA.Mods.Common/Activities/Attack.cs +++ b/OpenRA.Mods.Common/Activities/Attack.cs @@ -68,8 +68,8 @@ namespace OpenRA.Mods.Common.Activities return NextActivity; // Drop the target once none of the weapons are effective against it - var armaments = attack.ChooseArmamentsForTarget(Target, forceAttack); - if (!armaments.Any()) + var armaments = attack.ChooseArmamentsForTarget(Target, forceAttack).ToList(); + if (armaments.Count == 0) return NextActivity; // Update ranges