mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-02-04 05:26:24 +01:00
+ Adding files to MPQ no longer removes (listfile) and (attributes) when not enough space in the hash table
+ Fixes in deletion of files from MPQs v 4.0
This commit is contained in:
@@ -140,7 +140,7 @@ static DWORD GetSearchTableItems(TMPQArchive * ha)
|
||||
while(ha != NULL)
|
||||
{
|
||||
// Append the number of files
|
||||
dwMergeItems += (ha->pHetTable != NULL) ? ha->pHetTable->dwMaxFileCount
|
||||
dwMergeItems += (ha->pHetTable != NULL) ? ha->pHetTable->dwFileCount
|
||||
: ha->pHeader->dwBlockTableSize;
|
||||
// Move to the patched archive
|
||||
ha = ha->haPatch;
|
||||
|
||||
Reference in New Issue
Block a user