mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 01:05:59 +00:00
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:
parent
e2917b1664
commit
79ef36cf0e
@ -54,6 +54,8 @@ Engine::~Engine() {
|
||||
|
||||
delete _mixer;
|
||||
delete _saveFileMan;
|
||||
|
||||
g_engine = 0;
|
||||
}
|
||||
|
||||
const char *Engine::getSavePath() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user