From 78406d02db0c218877ffbf25f9ea5589cac32cf8 Mon Sep 17 00:00:00 2001 From: inspectredc <78732756+inspectredc@users.noreply.github.com> Date: Sun, 26 May 2024 18:48:10 +0100 Subject: [PATCH] Correct the transformation OOB bugfix (#483) --- mm/src/overlays/actors/ovl_player_actor/z_player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];