aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2003-08-15 15:17:25 +0000
committerTravis Howell2003-08-15 15:17:25 +0000
commita892474a4f53ae5c0755bb4b86092b79f7faccab (patch)
treece0eb823850f4b3aef24a9ebf8e0c9a2905f9d32 /scumm
parent2e38b49d276438c44924e537b4dd6a4533f4d073 (diff)
downloadscummvm-rg350-a892474a4f53ae5c0755bb4b86092b79f7faccab.tar.gz
scummvm-rg350-a892474a4f53ae5c0755bb4b86092b79f7faccab.tar.bz2
scummvm-rg350-a892474a4f53ae5c0755bb4b86092b79f7faccab.zip
Fix my fix
svn-id: r9711
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp5
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();
}
}