diff options
| author | Martin Kiewitz | 2015-07-04 02:26:12 +0200 | 
|---|---|---|
| committer | Martin Kiewitz | 2015-07-04 02:26:12 +0200 | 
| commit | fafe22731b3c8ee5891e0eb0428eeee165041b9e (patch) | |
| tree | 2831538ea01fb88db00c9a82abb55b003a671bcb | |
| parent | 7753f2d51610766fc273e810af1accbbcf013624 (diff) | |
| download | scummvm-rg350-fafe22731b3c8ee5891e0eb0428eeee165041b9e.tar.gz scummvm-rg350-fafe22731b3c8ee5891e0eb0428eeee165041b9e.tar.bz2 scummvm-rg350-fafe22731b3c8ee5891e0eb0428eeee165041b9e.zip  | |
COMMON: PKWARE data comp. library fix
fixes dictionary issues with some compressed data
| -rw-r--r-- | common/dcl.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/common/dcl.cpp b/common/dcl.cpp index b5bbc4eae2..2d75c9b17f 100644 --- a/common/dcl.cpp +++ b/common/dcl.cpp @@ -420,9 +420,9 @@ bool DecompressorDCL::unpack(SeekableReadStream *sourceStream, WriteStream *targ  				dictionary[dictionaryNextIndex] = dictionary[dictionaryIndex];  				dictionaryNextIndex++; dictionaryIndex++; -				if (dictionaryIndex >= dictionaryPos) +				if (dictionaryIndex == dictionaryPos)  					dictionaryIndex = dictionaryBaseIndex; -				if (dictionaryNextIndex >= dictionarySize) +				if (dictionaryNextIndex == dictionarySize)  					dictionaryNextIndex = 0;  				tokenLength--;  | 
