Fix my fix

svn-id: r9711
This commit is contained in:
Travis Howell 2003-08-15 15:17:25 +00:00
parent 2e38b49d27
commit a892474a4f

View File

@ -464,8 +464,9 @@ void Sound::playSound(int soundID) {
// This hack relays on the fact that we currently don't support SFX // This hack relays on the fact that we currently don't support SFX
// in these games, only music. Once we add SFX support, we'll have to // in these games, only music. Once we add SFX support, we'll have to
// revise it / replace it by a proper fix. // revise it / replace it by a proper fix.
if (READ_BE_UINT16(ptr) == 'RO' || READ_UINT32(ptr) == MKID('ADL ')) { if (ptr) {
_scumm->_imuse->stop_all_sounds(); if (READ_BE_UINT16(ptr) == 'RO' || READ_UINT32(ptr) == MKID('ADL '))
_scumm->_imuse->stop_all_sounds();
} }
} }