diff options
author | Travis Howell | 2003-08-15 15:17:25 +0000 |
---|---|---|
committer | Travis Howell | 2003-08-15 15:17:25 +0000 |
commit | a892474a4f53ae5c0755bb4b86092b79f7faccab (patch) | |
tree | ce0eb823850f4b3aef24a9ebf8e0c9a2905f9d32 | |
parent | 2e38b49d276438c44924e537b4dd6a4533f4d073 (diff) | |
download | scummvm-rg350-a892474a4f53ae5c0755bb4b86092b79f7faccab.tar.gz scummvm-rg350-a892474a4f53ae5c0755bb4b86092b79f7faccab.tar.bz2 scummvm-rg350-a892474a4f53ae5c0755bb4b86092b79f7faccab.zip |
Fix my fix
svn-id: r9711
-rw-r--r-- | scumm/sound.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 05494d9d60..86667d784b 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -464,8 +464,9 @@ void Sound::playSound(int soundID) { // 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 // revise it / replace it by a proper fix. - if (READ_BE_UINT16(ptr) == 'RO' || READ_UINT32(ptr) == MKID('ADL ')) { - _scumm->_imuse->stop_all_sounds(); + if (ptr) { + if (READ_BE_UINT16(ptr) == 'RO' || READ_UINT32(ptr) == MKID('ADL ')) + _scumm->_imuse->stop_all_sounds(); } } |