Clear g_engine when an Engine is deleted. This avoids a crash in error()

when quitting Broken Sword II. (I still get the error message, of course,
but that's a lot more helpful than an SDL parachute.)

svn-id: r15535
This commit is contained in:
Torbjörn Andersson 2004-10-13 06:35:13 +00:00
parent e2917b1664
commit 79ef36cf0e

View File

@ -54,6 +54,8 @@ Engine::~Engine() {
delete _mixer;
delete _saveFileMan;
g_engine = 0;
}
const char *Engine::getSavePath() const {