fix another crash in replay browser

This commit is contained in:
Chris Forbes
2010-12-19 17:47:21 +13:00
parent f3d0e4b8ed
commit 07d2e54bcc

View File

@@ -47,8 +47,11 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
widget.GetWidget("WATCH_BUTTON").OnMouseUp = mi =>
{
Widget.CloseWindow();
Game.JoinReplay(CurrentReplay);
if (currentReplay == null)
{
Widget.CloseWindow();
Game.JoinReplay(CurrentReplay);
}
return true;
};