Don’t crash if there are no production icons. Fixes #5543.

This commit is contained in:
Paul Chote
2014-07-12 14:10:29 +12:00
parent 1e76baf070
commit 54b5da3460

View File

@@ -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()