diff options
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 4ab10d9eb9..8f977c04c2 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -201,12 +201,14 @@ Console::~Console() { } void Console::preEnter() { - _vm->_gamestate->_sound.sfx_suspend(true); + if (_vm->_gamestate) + _vm->_gamestate->_sound.sfx_suspend(true); _vm->_mixer->pauseAll(true); } void Console::postEnter() { - _vm->_gamestate->_sound.sfx_suspend(false); + if (_vm->_gamestate) + _vm->_gamestate->_sound.sfx_suspend(false); _vm->_mixer->pauseAll(false); } |