aboutsummaryrefslogtreecommitdiff
path: root/scumm/bundle.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-01-14 17:47:33 +0000
committerPaweł Kołodziejski2003-01-14 17:47:33 +0000
commit7bae2062f8f1f66d153ff5beac33678d1b1f977b (patch)
treecdf1b1e406237eed1483a2f3c12525f8fe6c3832 /scumm/bundle.cpp
parente0d2d9f7a04f7f1281ba70abe33f3bae6f3fc772 (diff)
downloadscummvm-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.cpp2
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();