[Scummvm-cvs-logs] CVS: scummvm/base engine.cpp,1.21,1.22
Torbjörn Andersson
eriktorbjorn at users.sourceforge.net
Tue Oct 12 23:37:05 CEST 2004
Update of /cvsroot/scummvm/scummvm/base
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16249
Modified Files:
engine.cpp
Log Message:
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.)
Index: engine.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/engine.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- engine.cpp 28 Sep 2004 20:19:25 -0000 1.21
+++ engine.cpp 13 Oct 2004 06:35:13 -0000 1.22
@@ -54,6 +54,8 @@
delete _mixer;
delete _saveFileMan;
+
+ g_engine = 0;
}
const char *Engine::getSavePath() const {
More information about the Scummvm-git-logs
mailing list