+ The "(attributes)" file si only loaded if the block table was not cut

This commit is contained in:
unknown
2015-05-04 07:26:51 +02:00
parent 250891b7c5
commit d39d99944b
3 changed files with 6 additions and 5 deletions

View File

@@ -367,6 +367,7 @@ int SAttrLoadAttributes(TMPQArchive * ha)
// File table must be initialized
assert(ha->pFileTable != NULL);
assert((ha->dwFlags & MPQ_FLAG_BLOCK_TABLE_CUT) == 0);
// Don't load the attributes file from malformed Warcraft III maps
if(ha->dwFlags & MPQ_FLAG_MALFORMED)