fix crash when non-host exits map chooser

This commit is contained in:
Gustas
2022-04-24 12:37:04 +03:00
committed by abcdefg30
parent a152bf7324
commit 135823fced

View File

@@ -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 },
});