Correctly handle Production traits disabled by condition.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user