aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2011-06-21 22:54:25 +1000
committerPaul Gilbert2011-06-22 18:31:32 +1000
commit45e1d7aa0dc144792bf5b922d79337dec621ef81 (patch)
treedd81b4f6ae11c4de6e83827138a81344d3d1d298
parent1fe9985912c3bb819d1145b03389a615f9b11401 (diff)
downloadscummvm-rg350-45e1d7aa0dc144792bf5b922d79337dec621ef81.tar.gz
scummvm-rg350-45e1d7aa0dc144792bf5b922d79337dec621ef81.tar.bz2
scummvm-rg350-45e1d7aa0dc144792bf5b922d79337dec621ef81.zip
TSAGE: Bugfix for sound assert in scene 20
-rw-r--r--engines/tsage/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tsage/sound.cpp b/engines/tsage/sound.cpp
index 2ecd88941d..980e080e73 100644
--- a/engines/tsage/sound.cpp
+++ b/engines/tsage/sound.cpp
@@ -1808,7 +1808,7 @@ void Sound::_soServiceTrackType0(int trackIndex, const byte *channelData) {
return;
int channelNum = _trkChannel[trackIndex];
- assert((channelNum >= 0) && (channelNum < SOUND_ARR_SIZE));
+ assert((channelNum >= -1) && (channelNum < SOUND_ARR_SIZE));
int chFlags = (channelNum == -1) ? 0 : _chFlags[channelNum];
int voiceNum = -1;
SoundDriver *driver = NULL;