Make Shift+<Hotkey> queue five units/buildings. Fixes #5544.

This commit is contained in:
Oliver Brakmann
2014-06-24 19:33:37 +02:00
parent 4018da3481
commit 0ff66949fb

View File

@@ -523,7 +523,7 @@ namespace OpenRA.Mods.RA.Widgets
if (!paletteOpen) return false;
if (CurrentQueue == null) return false;
var toBuild = CurrentQueue.BuildableItems().FirstOrDefault(b => b.Traits.Get<BuildableInfo>().Hotkey == Hotkey.FromKeyInput(e));
var toBuild = CurrentQueue.BuildableItems().FirstOrDefault(b => b.Traits.Get<BuildableInfo>().Hotkey.Key == Hotkey.FromKeyInput(e).Key);
if (toBuild != null)
{