aboutsummaryrefslogtreecommitdiff
path: root/src/SFileListFile.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula-at-volny-dot-cz>2016-06-18 20:32:15 +0200
committerLadislav Zezula <zezula-at-volny-dot-cz>2016-06-18 20:32:15 +0200
commit303631f9d7f753dacffb1e038dd273dc204e1ea9 (patch)
tree5397acd7c5b8efe6e1a721f0177b534e38d9acd6 /src/SFileListFile.cpp
parent47b6b6eb4addd82a89d6bcd8fa92f9c0a09a5781 (diff)
+ Updated for protectors fiddling with too big block table index
Diffstat (limited to 'src/SFileListFile.cpp')
-rw-r--r--src/SFileListFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SFileListFile.cpp b/src/SFileListFile.cpp
index 62b8f11..3918bd9 100644
--- a/src/SFileListFile.cpp
+++ b/src/SFileListFile.cpp
@@ -350,7 +350,7 @@ static int SListFileCreateNodeForAllLocales(TMPQArchive * ha, const char * szFil
while(pHash != NULL)
{
// Allocate file name for the file entry
- AllocateFileName(ha, ha->pFileTable + pHash->dwBlockIndex, szFileName);
+ AllocateFileName(ha, ha->pFileTable + MPQ_BLOCK_INDEX(pHash), szFileName);
// Now find the next language version of the file
pHash = GetNextHashEntry(ha, pFirstHash, pHash);