ultimate-research / ssbh_lib

Reading and writing SSBH file formats in Rust
MIT License
8 stars 3 forks source link

Fix incorrect offset calculation for bitfield #79

Closed ScanMountGoat closed 3 years ago

ScanMountGoat commented 3 years ago

The check should be based on current pos + size to correctly avoid overlapping structs. It shouldn't matter in practice since the write implementation can't increment the data pointer.