Make Queue Groups work with ClassicProductionQueue.

This commit is contained in:
Mustafa Alperen Seki
2019-04-15 18:00:08 +03:00
committed by reaperrr
parent 8e91a1ba89
commit 77b313611e

View File

@@ -29,7 +29,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
// Classic production queues are initialized at game start, and then never change. // Classic production queues are initialized at game start, and then never change.
var queues = world.LocalPlayer.PlayerActor.TraitsImplementing<ProductionQueue>() var queues = world.LocalPlayer.PlayerActor.TraitsImplementing<ProductionQueue>()
.Where(q => q.Info.Type == button.ProductionGroup) .Where(q => (q.Info.Group ?? q.Info.Type) == button.ProductionGroup)
.ToArray(); .ToArray();
Action<bool> selectTab = reverse => Action<bool> selectTab = reverse =>