From 65784a4ee915fe9d737ba761acd084639df5b35e Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Mon, 31 Aug 2020 07:36:54 +0200 Subject: Fixed missing hash table in case when HET table exists --- src/SBaseFileTable.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/SBaseFileTable.cpp b/src/SBaseFileTable.cpp index 7f67533..7c9a857 100644 --- a/src/SBaseFileTable.cpp +++ b/src/SBaseFileTable.cpp @@ -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 -- cgit v1.2.3