call ShutdownGame after HOOKS->RestartProgram, since it deletes HOOKS

This commit is contained in:
Glenn Maynard
2005-02-08 05:09:51 +00:00
parent 98a558006b
commit 404d80e600
+3 -3
View File
@@ -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 );