aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/dcl.cpp4
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--;