diff options
| author | inspectredc <78732756+inspectredc@users.noreply.github.com> | 2024-05-26 18:48:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-26 18:48:10 +0100 |
| commit | 78406d02db0c218877ffbf25f9ea5589cac32cf8 (patch) | |
| tree | 22b4ebc81d68dac58976ac93f7330b18811252a2 | |
| parent | 84b8aef20aba949952625766a8627798c68a1518 (diff) | |
Correct the transformation OOB bugfix (#483)
| -rw-r--r-- | mm/src/overlays/actors/ovl_player_actor/z_player.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/src/overlays/actors/ovl_player_actor/z_player.c b/mm/src/overlays/actors/ovl_player_actor/z_player.c index b45d6f5ed..c0c22d529 100644 --- a/mm/src/overlays/actors/ovl_player_actor/z_player.c +++ b/mm/src/overlays/actors/ovl_player_actor/z_player.c @@ -10584,7 +10584,7 @@ void func_80841358(PlayState* play, Player* this, s32 arg2) { //! @bug OoB read if player is goron, deku or human // 2S2H [Port] - Set item to kokiri sword instead of OOB behaviour - if (this->transformation > 2) { + if (this->transformation >= 2) { item = ITEM_SWORD_KOKIRI; } else { item = D_8085D2B0[this->transformation]; |
