From 36af2107d67bb675a7b8451399a56f99ac6fa5aa Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 24 Sep 2017 16:24:57 +0100 Subject: [PATCH] Fix the attack move order generator activating with an empty selection. --- OpenRA.Mods.Common/Widgets/Logic/Ingame/CommandBarLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/CommandBarLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/CommandBarLogic.cs index 32d5ff28c2..53afcbe675 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/CommandBarLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/CommandBarLogic.cs @@ -209,7 +209,7 @@ namespace OpenRA.Mods.Common.Widgets { // HACK: enable attack move to be triggered if the ctrl key is pressed var modified = new Hotkey(e.Key, e.Modifiers & ~Modifiers.Ctrl); - if (attackMoveButton.Key.GetValue() == modified) + if (!attackMoveDisabled && attackMoveButton.Key.GetValue() == modified) { attackMoveButton.OnKeyPress(e); return true;