From a09cfd7a8ff56a32e7e5f2deb55b218ca1974e1f Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Mon, 20 Oct 2014 22:55:19 +1300 Subject: [PATCH] Fix a crash when double-clicking a replay with an unknown map. --- OpenRA.Mods.RA/Widgets/Logic/ReplayBrowserLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Widgets/Logic/ReplayBrowserLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/ReplayBrowserLogic.cs index e222fb5245..4d0ef79315 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/ReplayBrowserLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/ReplayBrowserLogic.cs @@ -624,7 +624,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic void WatchReplay() { - if (selectedReplay != null) + if (selectedReplay != null && selectedReplay.GameInfo.MapPreview.Status == MapStatus.Available) { Game.JoinReplay(selectedReplay.FilePath); Ui.CloseWindow();