diff --git a/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs index 851f5311b6..f0208f930a 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs @@ -153,12 +153,16 @@ namespace OpenRA.Mods.RA.Widgets.Logic void UpdateCurrentMap() { - if (MapUid == orderManager.LobbyInfo.GlobalSettings.Map) return; - MapUid = orderManager.LobbyInfo.GlobalSettings.Map; + var newMap = orderManager.LobbyInfo.GlobalSettings.Map; + if (MapUid == newMap) return; + + MapUid = newMap; Map = new Map(Game.modData.AvailableMaps[MapUid].Path); var title = Widget.RootWidget.GetWidget("LOBBY_TITLE"); - title.Text = "OpenRA Multiplayer Lobby - " + orderManager.LobbyInfo.GlobalSettings.ServerName + " - " + Map.Title; + if (title != null) + title.Text = "OpenRA Multiplayer Lobby - {0} - {1}".F( + orderManager.LobbyInfo.GlobalSettings.ServerName, Map.Title); } void UpdatePlayerList()