mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-20 14:47:22 +01:00
Fixed missing hash table in case when HET table exists
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user