+ Updated for protectors fiddling with too big block table index

This commit is contained in:
Ladislav Zezula
2016-06-18 20:32:15 +02:00
parent 47b6b6eb4a
commit 303631f9d7
8 changed files with 36 additions and 43 deletions

View File

@@ -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);