aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/game.cpp')
-rw-r--r--engines/gob/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/game.cpp b/engines/gob/game.cpp
index f96c2e8a45..e569daed53 100644
--- a/engines/gob/game.cpp
+++ b/engines/gob/game.cpp
@@ -352,7 +352,7 @@ void Game::freeSoundSlot(int16 slot) {
return;
if (_soundADL[slot]) {
- if (_vm->_adlib->getIndex() == slot)
+ if (_vm->_adlib && (_vm->_adlib->getIndex() == slot))
_vm->_adlib->stopPlay();
if (_soundFromExt[slot] == 1) {
delete[] ((char *) _soundSamples[slot]);