Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix alignment padding checks in UndertaleIO
To check if pos is aligned we calculate (pos & (alignment - 1)). When pos is aligned, the result will always be 0. However right now the Align functions of UTReader/Writer checks if it equals to the intended padding byte, which makes zero sense. This commit makes them check against 0.
- Loading branch information