diff options
Diffstat (limited to 'simon/sound.cpp')
-rw-r--r-- | simon/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simon/sound.cpp b/simon/sound.cpp index 205094343f..44201899f8 100644 --- a/simon/sound.cpp +++ b/simon/sound.cpp @@ -235,7 +235,7 @@ void VorbisSound::playSound(uint sound, PlayingSoundHandle *handle, byte flags) while (_offsets[sound + i] == _offsets[sound]) i++; - uint32 size = _offsets[sound+1] - _offsets[sound]; + uint32 size = _offsets[sound + i] - _offsets[sound]; _mixer->playVorbis(handle, _file, size); } |