From cef9e7d4f00e4e015bf07693a72a752734f13dce Mon Sep 17 00:00:00 2001 From: Yves Date: Sun, 27 Jul 2014 17:28:36 +0000 Subject: [PATCH] Fixes crash in replay mode introduced in 28bdd8540f. This was SVN commit r15571. --- source/ps/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ps/Game.cpp b/source/ps/Game.cpp index 2233d5165d..34a0d48094 100644 --- a/source/ps/Game.cpp +++ b/source/ps/Game.cpp @@ -242,9 +242,9 @@ PSRETURN CGame::ReallyStartGame() Render(); // Call the reallyStartGame GUI function, but only if it exists - JS::RootedValue global(cx, g_GUI->GetActiveGUI()->GetGlobalObject()); if (g_GUI && g_GUI->HasPages()) { + JS::RootedValue global(cx, g_GUI->GetActiveGUI()->GetGlobalObject()); if (g_GUI->GetActiveGUI()->GetScriptInterface()->HasProperty(global, "reallyStartGame")) g_GUI->GetActiveGUI()->GetScriptInterface()->CallFunctionVoid(global, "reallyStartGame"); }