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

@@ -46,9 +46,12 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
AddReplay(rl, replayFile, template, ref offset); AddReplay(rl, replayFile, template, ref offset);
widget.GetWidget("WATCH_BUTTON").OnMouseUp = mi => widget.GetWidget("WATCH_BUTTON").OnMouseUp = mi =>
{
if (currentReplay == null)
{ {
Widget.CloseWindow(); Widget.CloseWindow();
Game.JoinReplay(CurrentReplay); Game.JoinReplay(CurrentReplay);
}
return true; return true;
}; };