mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-27 17:51:33 +01:00
+ Fixed bug when SFileAddFileEx could add a file with MPQ_FILE_SINGLE_UNIT to a Warcraft III map
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user