Fix crash when selecting the same map

This commit is contained in:
tomas
2022-08-16 20:52:17 +02:00
committed by abcdefg30
parent 3ab6d3f00a
commit 92478a219e

View File

@@ -184,7 +184,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var onSelect = new Action<string>(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));