diff options
author | Max Horn | 2003-01-18 17:42:27 +0000 |
---|---|---|
committer | Max Horn | 2003-01-18 17:42:27 +0000 |
commit | 6f499d8fa12090a3b47d01201b54f60d531dfd99 (patch) | |
tree | 43744202488d05139da78d9d3d26b2f17b2fa7ee /scumm/bundle.cpp | |
parent | e7c81140ea2c08a8d6bacd8a042c2aaeb71d25fd (diff) | |
download | scummvm-rg350-6f499d8fa12090a3b47d01201b54f60d531dfd99.tar.gz scummvm-rg350-6f499d8fa12090a3b47d01201b54f60d531dfd99.tar.bz2 scummvm-rg350-6f499d8fa12090a3b47d01201b54f60d531dfd99.zip |
fix for the music crash, I hope... hm
svn-id: r6503
Diffstat (limited to 'scumm/bundle.cpp')
-rw-r--r-- | scumm/bundle.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/bundle.cpp b/scumm/bundle.cpp index f35a78485f..52fc3da875 100644 --- a/scumm/bundle.cpp +++ b/scumm/bundle.cpp @@ -865,7 +865,10 @@ int32 Bundle::decompressCodec(int32 codec, byte *comp_input, byte *comp_output, outputWord = 0; imcTableEntry = 7; } - left = (origLeft - 1) / (2 * channels) + 1; + + left = (origLeft - 1) / (2 * (channels - channel)) + 1; + origLeft -= 2* left; + destPos = startPos + 2 * channel; while (left--) { curTableEntry = _destImcTable[curTablePos]; |