aboutsummaryrefslogtreecommitdiff
path: root/scumm/bundle.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-12-28 17:11:23 +0000
committerPaweł Kołodziejski2002-12-28 17:11:23 +0000
commitf48341c8a557e98233706a274328ff60ae666224 (patch)
treed6c9839bd637d9adde45450010e757cd4493d6a8 /scumm/bundle.cpp
parentb794c3c37563e42eb0ffa52ac2930a9b470ef18b (diff)
downloadscummvm-rg350-f48341c8a557e98233706a274328ff60ae666224.tar.gz
scummvm-rg350-f48341c8a557e98233706a274328ff60ae666224.tar.bz2
scummvm-rg350-f48341c8a557e98233706a274328ff60ae666224.zip
fix for CMI codec
svn-id: r6239
Diffstat (limited to 'scumm/bundle.cpp')
-rw-r--r--scumm/bundle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/bundle.cpp b/scumm/bundle.cpp
index ea0015ffa3..8e1527de82 100644
--- a/scumm/bundle.cpp
+++ b/scumm/bundle.cpp
@@ -850,7 +850,7 @@ int32 Bundle::decompressCodec(int32 codec, byte *comp_input, byte *comp_output,
var3b = (1 << decompTable) << 1;
readPos = src + (tableEntrySum >> 3);
readWord = (uint16)(READ_BE_UINT16(readPos) << (tableEntrySum & 7));
- otherTablePos = (byte)(readWord << (16 - curTableEntry)) & 0xff;
+ otherTablePos = (byte)(readWord >> (16 - curTableEntry));
tableEntrySum += curTableEntry;
esiReg = imxShortTable[curTableEntry];
esiReg = (esiReg & otherTablePos) << (7 - curTableEntry);