From a9f8a9ca1875be33d6bb63c6c31d00082f5b6d4a Mon Sep 17 00:00:00 2001 From: Oliver Kiehl Date: Mon, 19 Jan 2004 17:50:38 +0000 Subject: oops svn-id: r12511 --- simon/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'simon') 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); } -- cgit v1.2.3