diff options
author | Paweł Kołodziejski | 2003-01-14 17:47:33 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-01-14 17:47:33 +0000 |
commit | 7bae2062f8f1f66d153ff5beac33678d1b1f977b (patch) | |
tree | cdf1b1e406237eed1483a2f3c12525f8fe6c3832 /scumm/bundle.cpp | |
parent | e0d2d9f7a04f7f1281ba70abe33f3bae6f3fc772 (diff) | |
download | scummvm-rg350-7bae2062f8f1f66d153ff5beac33678d1b1f977b.tar.gz scummvm-rg350-7bae2062f8f1f66d153ff5beac33678d1b1f977b.tar.bz2 scummvm-rg350-7bae2062f8f1f66d153ff5beac33678d1b1f977b.zip |
increased compression table for comi music, and added assert for it
svn-id: r6456
Diffstat (limited to 'scumm/bundle.cpp')
-rw-r--r-- | scumm/bundle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/bundle.cpp b/scumm/bundle.cpp index 2b113565ea..7918d71f41 100644 --- a/scumm/bundle.cpp +++ b/scumm/bundle.cpp @@ -271,6 +271,7 @@ int32 Bundle::decompressVoiceSampleByIndex(int32 index, byte *comp_final, int32 comp_output = (byte *)malloc(10000); + assert(num <= 50); for (i = 0; i < num; i++) { comp_input = (byte *)malloc(_compVoiceTable[i].size); @@ -313,6 +314,7 @@ int32 Bundle::decompressMusicSampleByIndex(int32 index, int32 number, byte *comp return 0; } + assert(num <= 3361); for (i = 0; i < num; i++) { _compMusicTable[i].offset = _musicFile.readUint32BE(); _compMusicTable[i].size = _musicFile.readUint32BE(); |