Fix map chooser crashing the server creation dialog in cnc

This commit is contained in:
Oliver Brakmann
2015-05-24 11:40:33 +02:00
parent f2abf10670
commit 6f0e155afb

View File

@@ -44,6 +44,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
Ui.OpenWindow("MAPCHOOSER_PANEL", new WidgetArgs()
{
{ "initialMap", preview.Uid },
{ "initialTab", MapClassification.System },
{ "onExit", () => { } },
{ "onSelect", (Action<string>)(uid => preview = Game.ModData.MapCache[uid]) },
{ "filter", MapVisibility.Lobby },