mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-08 18:06:41 +00:00
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:
committed by
GitHub
parent
48bcc1de5b
commit
c13df79848
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user