fix another crash in replay browser
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user