summaryrefslogtreecommitdiffstats
path: root/unrarlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'unrarlib.c')
-rw-r--r--unrarlib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/unrarlib.c b/unrarlib.c
index 48bece58e0..9d4299adbc 100644
--- a/unrarlib.c
+++ b/unrarlib.c
@@ -1676,7 +1676,10 @@ void ReadTables(void)
UnpReadBuf(0);
DecodeNumber((struct Decode *)&BD);
if (Number<16)
- Table[I++]=(Number+UnpOldTable[I]) & 0xf;
+ {
+ Table[I]=(Number+UnpOldTable[I]) & 0xf;
+ I++;
+ }
else
if (Number==16)
{