Fix some ADM3 [Cyberpunk 2077 (PC)]

This commit is contained in:
bnnm 2024-02-29 17:30:02 +01:00
parent aa22b1c86e
commit 65a0502d86

View File

@ -213,8 +213,10 @@ static int parse_adm(adm_header_t* adm, STREAMFILE* sf) {
/* idle engine */
offset = read_u32le(0x10c, sf);
if (!parse_type(adm, sf, offset)) goto fail; /* SMP2 */
if (read_u32le(0x110, sf) != 1) goto fail;
if (offset != 0) { /* may not exist */
if (!parse_type(adm, sf, offset)) goto fail; /* SMP2 */
if (read_u32le(0x110, sf) != 1) goto fail;
}
break;
default: