+ Fixed bug when SFileAddFileEx could add a file with MPQ_FILE_SINGLE_UNIT to a Warcraft III map

This commit is contained in:
Zezula Ladislav
2017-07-28 10:43:49 +02:00
parent f813753a66
commit 80021e4a67
4 changed files with 13 additions and 4 deletions

View File

@@ -307,7 +307,7 @@ bool WINAPI SFileOpenArchive(
}
// Check for MPK archives (Longwu Online - MPQ fork)
if(dwHeaderID == ID_MPK && bIsWarcraft3Map == false)
if(bIsWarcraft3Map == false && dwHeaderID == ID_MPK)
{
// Now convert the MPK header to MPQ Header version 4
nError = ConvertMpkHeaderToFormat4(ha, FileSize, dwFlags);