Fix the attack move order generator activating with an empty selection.

This commit is contained in:
Paul Chote
2017-09-24 16:24:57 +01:00
committed by reaperrr
parent d8f53a9ccd
commit 36af2107d6

View File

@@ -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;