From 303631f9d7f753dacffb1e038dd273dc204e1ea9 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Sat, 18 Jun 2016 20:32:15 +0200 Subject: + Updated for protectors fiddling with too big block table index --- src/SFileListFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/SFileListFile.cpp') 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); -- cgit v1.2.3