aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-09-20 09:54:21 +0000
committerTravis Howell2004-09-20 09:54:21 +0000
commitdd45c4272116248cfbc7fdf3fab5f0226745b9d8 (patch)
tree2baeed3edfe336ba4a64d0db53ed1d2084780192 /scumm
parent1d1442553b9edc13eb5d2ea1f5726ae3dd520ffd (diff)
downloadscummvm-rg350-dd45c4272116248cfbc7fdf3fab5f0226745b9d8.tar.gz
scummvm-rg350-dd45c4272116248cfbc7fdf3fab5f0226745b9d8.tar.bz2
scummvm-rg350-dd45c4272116248cfbc7fdf3fab5f0226745b9d8.zip
Ooops, was off by one again.
svn-id: r15200
Diffstat (limited to 'scumm')
-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);