From 92478a219e7401002d00dca9688c51febe3c60f2 Mon Sep 17 00:00:00 2001 From: tomas Date: Tue, 16 Aug 2022 20:52:17 +0200 Subject: [PATCH] Fix crash when selecting the same map --- OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs index 1b8fc11a3a..08fd519a95 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs @@ -184,7 +184,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic var onSelect = new Action(uid => { // Don't select the same map again, and handle map becoming unavailable - if (uid == map.Uid && modData.MapCache[uid].Status != MapStatus.Available) + if (uid == map.Uid || modData.MapCache[uid].Status != MapStatus.Available) return; orderManager.IssueOrder(Order.Command("map " + uid));