fix crash when non-host exits map chooser
This commit is contained in:
@@ -205,7 +205,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
{ "initialMap", lastUpdatedUid ?? map.Uid },
|
||||
{ "initialTab", MapClassification.System },
|
||||
{ "onExit", Game.IsHost ? new Action(() => UpdateSelectedMap()) : null },
|
||||
{ "onExit", Game.IsHost ? (Action)UpdateSelectedMap : modData.MapCache.UpdateMaps },
|
||||
{ "onSelect", Game.IsHost ? onSelect : null },
|
||||
{ "filter", MapVisibility.Lobby },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user