aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiehl2004-01-11 15:42:11 +0000
committerOliver Kiehl2004-01-11 15:42:11 +0000
commit563d95c576c817a63ec64302e67b2ee5daa97c6e (patch)
treef5f956e772b1fccc66863970fac765f4ba68bdf6
parent6dc8407297fc11301c8abe6c7e0801f046567449 (diff)
downloadscummvm-rg350-563d95c576c817a63ec64302e67b2ee5daa97c6e.tar.gz
scummvm-rg350-563d95c576c817a63ec64302e67b2ee5daa97c6e.tar.bz2
scummvm-rg350-563d95c576c817a63ec64302e67b2ee5daa97c6e.zip
fix silly bug
svn-id: r12319
-rw-r--r--simon/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/simon/sound.cpp b/simon/sound.cpp
index 6167742e92..011027879b 100644
--- a/simon/sound.cpp
+++ b/simon/sound.cpp
@@ -275,8 +275,8 @@ Sound::Sound(const byte game, const GameSpecificSettings *gss, const Common::Str
file->seek(0, SEEK_END);
int end = file->pos();
file->seek(0, SEEK_SET);
- _filenums = (uint16 *)malloc(end / 3 + 1);
- _offsets = (uint32 *)malloc((end / 6) * 4 + 1);
+ _filenums = (uint16 *)malloc((end / 6 + 1) * 2);
+ _offsets = (uint32 *)malloc((end / 6 + 1) * 4);
for (int i = 1; i <= end / 6; i++) {
_filenums[i] = file->readUint16BE();