+ 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

@@ -410,7 +410,7 @@ bool WINAPI SFileOpenArchive(
}
// Load the "(attributes)" file and merge it to the file table
if(nError == ERROR_SUCCESS && (dwFlags & MPQ_OPEN_NO_ATTRIBUTES) == 0)
if(nError == ERROR_SUCCESS && (dwFlags & MPQ_OPEN_NO_ATTRIBUTES) == 0 && (ha->dwFlags & MPQ_FLAG_BLOCK_TABLE_CUT) == 0)
{
// Quick check for (attributes)
pFileEntry = GetFileEntryLocale(ha, ATTRIBUTES_NAME, LANG_NEUTRAL);