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"); }