mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-08 18:06:41 +00:00
Prefix sizes were being read incorrectly for IRD parsing
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user