aboutsummaryrefslogtreecommitdiff
path: root/src/SBaseCommon.cpp
diff options
context:
space:
mode:
authorunknown <E:\Ladik\Mail>2015-04-21 19:36:13 +0200
committerunknown <E:\Ladik\Mail>2015-04-21 19:36:13 +0200
commit5747ad4910966b27b4da3f0d0e5f085697e5bf7b (patch)
tree5e003449eec18c2f99d10dda2796b77a43b5e86c /src/SBaseCommon.cpp
parent68e2c2527db10dcfdd9fdc2219c7fe9784abf738 (diff)
+ Defragmenting file table fixed
Diffstat (limited to 'src/SBaseCommon.cpp')
-rw-r--r--src/SBaseCommon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SBaseCommon.cpp b/src/SBaseCommon.cpp
index 9509b6f..062a737 100644
--- a/src/SBaseCommon.cpp
+++ b/src/SBaseCommon.cpp
@@ -612,7 +612,7 @@ TMPQHash * GetNextHashEntry(TMPQArchive * ha, TMPQHash * pFirstHash, TMPQHash *
pHash = ha->pHashTable + dwIndex;
// If the entry matches, we found it.
- if(pHash->dwName1 == dwName1 && pHash->dwName2 == dwName2 && pHash->dwBlockIndex < ha->pHeader->dwBlockTableSize)
+ if(pHash->dwName1 == dwName1 && pHash->dwName2 == dwName2 && pHash->dwBlockIndex < ha->dwFileTableSize)
return pHash;
// If that hash entry is a free entry, it means we haven't found the file