aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 85f5f6d735..847b7bb467 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -187,7 +187,7 @@ void Sound::playSound(int soundID, int offset) {
else if (soundID >= 4000)
skip = (soundID - 4000);
- if (skip > tracks)
+ if (skip > tracks - 1)
skip = 0;
musicFile.seek(+28, SEEK_CUR);