aboutsummaryrefslogtreecommitdiff
path: root/src/SBaseFileTable.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2020-08-31 07:36:54 +0200
committerLadislav Zezula <zezula@volny.cz>2020-08-31 07:36:54 +0200
commit65784a4ee915fe9d737ba761acd084639df5b35e (patch)
treeb31d176d52b371fee4fcc58fe2a4b3da2c2f5d06 /src/SBaseFileTable.cpp
parentf438d59c5c10c9d2308ac1bfaff8da54bdbb8c4f (diff)
Fixed missing hash table in case when HET table exists
Diffstat (limited to 'src/SBaseFileTable.cpp')
-rw-r--r--src/SBaseFileTable.cpp4
1 files changed, 3 insertions, 1 deletions
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