Prefix sizes were being read incorrectly for IRD parsing

This commit is contained in:
Matt Nadareski
2026-03-20 22:01:13 -04:00
parent ae6608e2a7
commit 015ad062ac

View File

@@ -47,9 +47,9 @@ namespace SabreTools.Serialization.Readers
if (ird.Version == 7)
ird.UID = data.ReadUInt32LittleEndian();
ird.HeaderLength = data.ReadByteValue();
ird.HeaderLength = data.ReadUInt32LittleEndian();
ird.Header = data.ReadBytes((int)ird.HeaderLength);
ird.FooterLength = data.ReadByteValue();
ird.FooterLength = data.ReadUInt32LittleEndian();
ird.Footer = data.ReadBytes((int)ird.FooterLength);
ird.RegionCount = data.ReadByteValue();