Simplify the map chooser code.

This commit is contained in:
Paul Chote
2014-03-14 18:00:35 +13:00
parent 4c4783262f
commit a501828660
3 changed files with 27 additions and 29 deletions

View File

@@ -46,7 +46,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
{
{ "initialMap", preview.Uid },
{ "onExit", () => {} },
{ "onSelect", (Action<Map>)(m => preview = Game.modData.MapCache[m.Uid]) }
{ "onSelect", (Action<String>)(uid => preview = Game.modData.MapCache[uid]) }
});
};