Correct the transformation OOB bugfix (#483)

This commit is contained in:
inspectredc
2024-05-26 18:48:10 +01:00
committed by GitHub
parent 84b8aef20a
commit 78406d02db
@@ -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];