From 8e6cd813337ca4ec7ba5124b361583219c151b90 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Fri, 26 Jan 2007 19:00:41 +0000 Subject: - 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 --- engines/gob/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/gob/game.cpp') 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]); -- cgit v1.2.3