diff options
Diffstat (limited to 'src/SFileListFile.cpp')
-rw-r--r-- | src/SFileListFile.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/SFileListFile.cpp b/src/SFileListFile.cpp index f5251bc..5f8a9df 100644 --- a/src/SFileListFile.cpp +++ b/src/SFileListFile.cpp @@ -382,7 +382,6 @@ static LPBYTE CreateListFile(TMPQArchive * ha, DWORD * pcbListFile) // If the file name is already there, does nothing. static int SListFileCreateNodeForAllLocales(TMPQArchive * ha, const char * szFileName) { - TMPQHeader * pHeader = ha->pHeader; TFileEntry * pFileEntry; TMPQHash * pFirstHash; TMPQHash * pHash; @@ -410,7 +409,7 @@ static int SListFileCreateNodeForAllLocales(TMPQArchive * ha, const char * szFil while(pHash != NULL) { // Is it a valid file table index ? - if(pHash->dwBlockIndex < pHeader->dwBlockTableSize) + if(pHash->dwBlockIndex < ha->dwFileTableSize) { // Allocate file name for the file entry AllocateFileName(ha, ha->pFileTable + pHash->dwBlockIndex, szFileName); |