From e5834f7da2c1efbe4525210c4fd2082ace2e86fa Mon Sep 17 00:00:00 2001 From: EdnessP <55930127+EdnessP@users.noreply.github.com> Date: Thu, 27 Jun 2024 15:38:13 +0300 Subject: [PATCH] ADM3: fix SMB1 table unk value --- src/meta/adm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/meta/adm.c b/src/meta/adm.c index 4e57f41f..3b136512 100644 --- a/src/meta/adm.c +++ b/src/meta/adm.c @@ -138,7 +138,8 @@ static int parse_type(adm_header_t* adm, STREAMFILE* sf, uint32_t offset) { int i; for (i = 0; i < table_count; i++) { - uint32_t smp2_unk = read_u32le(table_offset + i * 0x08 + 0x00, sf); + /* 16-bit value after smp2_unk rarely have non-zero values [PUBG Lite] */ + uint16_t smp2_unk = read_u16le(table_offset + i * 0x08 + 0x00, sf); uint32_t smp2_offset = read_u32le(table_offset + i * 0x08 + 0x04, sf); if (smp2_unk != 1)