Correctly handle Production traits disabled by condition.

This commit is contained in:
Andre Mohren
2018-06-18 13:29:07 +02:00
committed by reaperrr
parent 53032576e2
commit c3f4bc484d
4 changed files with 14 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ namespace OpenRA.Mods.Common.Traits
.FirstOrDefault(q => q.Enabled && types.Contains(q.Info.Type));
}
if (queue == null)
if (queue == null || !queue.BuildableItems().Any())
return;
if (tabsWidget.Value != null)