Fix extraction of recent MPF-zipped logs (#38)

* Fix extraction of recent MPF-zipped logs

* Use greater than or equal to

* corrected logic
This commit is contained in:
HeroponRikiBestest
2025-11-02 08:35:02 -05:00
committed by GitHub
parent 48bcc1de5b
commit c13df79848

View File

@@ -770,7 +770,8 @@ namespace SabreTools.Serialization.Readers
obj.HeaderID = (HeaderID)data.ReadUInt16LittleEndian(ref offset);
obj.DataSize = data.ReadUInt16LittleEndian(ref offset);
obj.Data = data.ReadBytes(ref offset, obj.DataSize);
if (obj.DataSize > 0)
obj.Data = data.ReadBytes(ref offset, obj.DataSize);
return obj;
}