diff options
author | Sven Hesse | 2007-01-26 19:00:41 +0000 |
---|---|---|
committer | Sven Hesse | 2007-01-26 19:00:41 +0000 |
commit | 8e6cd813337ca4ec7ba5124b361583219c151b90 (patch) | |
tree | 2b4c64b4a18a5f7161434288293e9f45ecd9501a /engines/gob/game.cpp | |
parent | d2910fe758ef7dac8657a3a9faa85383a6cf0e9a (diff) | |
download | scummvm-rg350-8e6cd813337ca4ec7ba5124b361583219c151b90.tar.gz scummvm-rg350-8e6cd813337ca4ec7ba5124b361583219c151b90.tar.bz2 scummvm-rg350-8e6cd813337ca4ec7ba5124b361583219c151b90.zip |
- Just warn, don't die, when a CD-Track isn't found
- Before using _vm->_adlib, first check whether it's actually there
svn-id: r25205
Diffstat (limited to 'engines/gob/game.cpp')
-rw-r--r-- | engines/gob/game.cpp | 2 |
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]); |