Fixed missing hash table in case when HET table exists

This commit is contained in:
Ladislav Zezula
2020-08-31 07:36:54 +02:00
parent f438d59c5c
commit 65784a4ee9
2 changed files with 15 additions and 2 deletions

View File

@@ -2340,7 +2340,9 @@ int LoadAnyHashTable(TMPQArchive * ha)
ha->pHetTable = LoadHetTable(ha);
// Try to load classic hash table
if(pHeader->dwHashTableSize && ha->pHetTable == NULL)
// Note that we load the classic hash table even when HET table exists,
// because if the MPQ gets modified and saved, hash table must be there
if(pHeader->dwHashTableSize)
ha->pHashTable = LoadHashTable(ha);
// At least one of the tables must be present