From 404d80e6000bf5e5c885edc1675af44575a38336 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 8 Feb 2005 05:09:51 +0000 Subject: [PATCH] call ShutdownGame after HOOKS->RestartProgram, since it deletes HOOKS --- stepmania/src/StepMania.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 1d5e3e7e1c..08f103cbee 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -216,12 +216,12 @@ void ShutdownGame() * up the call stack, to avoid having to use exceptions. */ void HandleException( CString error ) { - /* Shut down first, so we exit graphics mode before trying to open a dialog. */ - ShutdownGame(); - if( g_bAutoRestart ) HOOKS->RestartProgram(); + /* Shut down first, so we exit graphics mode before trying to open a dialog. */ + ShutdownGame(); + /* Throw up a pretty error dialog. */ Dialog::Error( error );