SCUMM: limit 'Unrecognized base tag' warning to valid cases

This warning will not only show up if a tag is actually unrecognized but also in cases where the tag is recognized, but the resource size is 0. This happens quite a lot in the Amiga version of MI2 with 'SOU ' tags.
This commit is contained in:
athrxx 2019-07-07 15:45:22 +02:00
parent 4ee4d2d9af
commit 19643175a8

View File

@ -1335,7 +1335,8 @@ int ScummEngine::readSoundResource(ResId idx) {
}
}
warning("Unrecognized base tag 0x%08x in sound %d", basetag, idx);
if (total_size)
warning("Unrecognized base tag 0x%08x in sound %d", basetag, idx);
_res->_types[rtSound][idx]._roomoffs = RES_INVALID_OFFSET;
return 0;
}