diff options
author | Ladislav Zezula <zezula-at-volny-dot-cz> | 2016-06-18 20:32:15 +0200 |
---|---|---|
committer | Ladislav Zezula <zezula-at-volny-dot-cz> | 2016-06-18 20:32:15 +0200 |
commit | 303631f9d7f753dacffb1e038dd273dc204e1ea9 (patch) | |
tree | 5397acd7c5b8efe6e1a721f0177b534e38d9acd6 /src/SFileListFile.cpp | |
parent | 47b6b6eb4addd82a89d6bcd8fa92f9c0a09a5781 (diff) |
+ Updated for protectors fiddling with too big block table index
Diffstat (limited to 'src/SFileListFile.cpp')
-rw-r--r-- | src/SFileListFile.cpp | 2 |
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);
|