call ShutdownGame after HOOKS->RestartProgram, since it deletes HOOKS
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user