Fix a crash when double-clicking a replay with an unknown map.

This commit is contained in:
Paul Chote
2014-10-20 22:55:19 +13:00
parent 2b0042ca23
commit a09cfd7a8f

View File

@@ -624,7 +624,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
void WatchReplay() void WatchReplay()
{ {
if (selectedReplay != null) if (selectedReplay != null && selectedReplay.GameInfo.MapPreview.Status == MapStatus.Available)
{ {
Game.JoinReplay(selectedReplay.FilePath); Game.JoinReplay(selectedReplay.FilePath);
Ui.CloseWindow(); Ui.CloseWindow();