Don’t crash if there are no production icons. Fixes #5543.
This commit is contained in:
@@ -199,7 +199,7 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
i++;
|
||||
}
|
||||
|
||||
eventBounds = icons.Keys.Aggregate(Rectangle.Union);
|
||||
eventBounds = icons.Any() ? icons.Keys.Aggregate(Rectangle.Union) : Rectangle.Empty;
|
||||
}
|
||||
|
||||
public override void Draw()
|
||||
|
||||
Reference in New Issue
Block a user