aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-09-04 09:26:08 +0000
committerTravis Howell2004-09-04 09:26:08 +0000
commitae4105de50ef26265a469cde6fa3003a7bd6c000 (patch)
tree1a6987b36c2f2aaf0cc11bf096c81df943bcc1f3 /scumm
parent868ec03962aa42eb01ea01e861f16c5b9c74cb78 (diff)
downloadscummvm-rg350-ae4105de50ef26265a469cde6fa3003a7bd6c000.tar.gz
scummvm-rg350-ae4105de50ef26265a469cde6fa3003a7bd6c000.tar.bz2
scummvm-rg350-ae4105de50ef26265a469cde6fa3003a7bd6c000.zip
Should use _numSounds too.
svn-id: r14886
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 2c35a64d03..76139b2eaa 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -88,8 +88,8 @@ Sound::~Sound() {
void Sound::addSoundToQueue(int sound, int offset) {
_vm->VAR(_vm->VAR_LAST_SOUND) = sound;
- // Music resources are in separate file
- if (!((_vm->_heversion >= 70) && sound >= 4000))
+ // HE music resources are in separate file
+ if (sound <= _vm->_numSounds)
_vm->ensureResourceLoaded(rtSound, sound);
addSoundToQueue2(sound, offset);
}