From 1aa1a77f05c51ba00bf9804a3e75609e7b7cf188 Mon Sep 17 00:00:00 2001 From: Oliver Kiehl Date: Tue, 26 Nov 2002 22:00:17 +0000 Subject: fixed a stupid mistake of mine svn-id: r5725 --- simon/simonsound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'simon/simonsound.cpp') diff --git a/simon/simonsound.cpp b/simon/simonsound.cpp index da106b57aa..d5d406247c 100644 --- a/simon/simonsound.cpp +++ b/simon/simonsound.cpp @@ -203,12 +203,12 @@ SimonSound::Sound::Sound(SoundMixer *mixer, File *file, uint32 base) uint res = 0; uint32 size; - _file->seek(base + 4, SEEK_SET); + _file->seek(base + sizeof(uint32), SEEK_SET); size = _file->readUint32LE(); res = size / sizeof(uint32); - _offsets = (uint32 *)malloc(size + 1); + _offsets = (uint32 *)malloc(size + sizeof(uint32)); _file->seek(base, SEEK_SET); -- cgit v1.2.3