From 6ab289196ebaed3b8b452f4c65b679b4a58c5446 Mon Sep 17 00:00:00 2001 From: mike8699 Date: Sat, 4 Jan 2025 18:24:30 -0500 Subject: [PATCH] Fix regalloc issue --- src/00_Core/Player/LinkStateItem.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/00_Core/Player/LinkStateItem.cpp b/src/00_Core/Player/LinkStateItem.cpp index 93c1e336..35363720 100644 --- a/src/00_Core/Player/LinkStateItem.cpp +++ b/src/00_Core/Player/LinkStateItem.cpp @@ -34,7 +34,6 @@ ARM void LinkStateItem::OnStateLeave(s32 param1) { LinkStateMove *pLVar2; s32 iVar3; unk32 *puVar4; - unk32 *puVar5; LinkStateBase::OnStateLeave(param1); @@ -89,8 +88,7 @@ ARM void LinkStateItem::OnStateLeave(s32 param1) { this->mNextEquip = -1; puVar4 = (unk32 *) this + 20; - puVar5 = (unk32 *) this + 22; - for (; puVar4 != puVar5; puVar4 = puVar4 + 4) { + for (; puVar4 != (unk32 *) this + 22; puVar4 = puVar4 + 4) { func_ov000_020b7e6c(puVar4); } if (gPlayerControl->mUnk_80 != false) {