aboutsummaryrefslogtreecommitdiff
path: root/src/SFileListFile.cpp
diff options
context:
space:
mode:
authorunknown <E:\Ladik\Mail>2015-04-21 19:36:13 +0200
committerunknown <E:\Ladik\Mail>2015-04-21 19:36:13 +0200
commit5747ad4910966b27b4da3f0d0e5f085697e5bf7b (patch)
tree5e003449eec18c2f99d10dda2796b77a43b5e86c /src/SFileListFile.cpp
parent68e2c2527db10dcfdd9fdc2219c7fe9784abf738 (diff)
+ Defragmenting file table fixed
Diffstat (limited to 'src/SFileListFile.cpp')
-rw-r--r--src/SFileListFile.cpp3
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);