FireEmblemUniverse / SkillSystem_FE8

Creative Commons Zero v1.0 Universal
55 stars 93 forks source link

Fix unit indexes past 0x7F always passing #636

Closed masterofcontroversy closed 2 months ago

masterofcontroversy commented 2 months ago

Fixes #635. The issue is that unit index is loaded as signed, which, in O'Neil's case, leads to the code comparing 0x82 to 0xFFFFFF82. Loading unit index as unsigned fixes this.