From 1004695922113383284b32db19e98e6a6aa985b1 Mon Sep 17 00:00:00 2001 From: Tal Hayon Date: Tue, 18 Jan 2022 09:35:04 +0200 Subject: [PATCH] Remove assembly instruction from PutItemOnSlot --- src/code_0805436C.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/code_0805436C.c b/src/code_0805436C.c index 72da2bf9..6d3eb919 100644 --- a/src/code_0805436C.c +++ b/src/code_0805436C.c @@ -48,7 +48,7 @@ u32 IsItemEquipped(u32 itemID) { void PutItemOnSlot(u32 itemID) { u32 itemSlot; - register u32 itemID2 asm("r5") = itemID; + u32 itemID2 = itemID; if (itemID2 < 0x47) { sub_0807CAA0(0, 1); } @@ -60,7 +60,7 @@ void PutItemOnSlot(u32 itemID) { itemSlot = 1; } if (itemSlot == 2) { - u8 temp = gUnk_080FD5B4[itemID2].unk; + u32 temp = gUnk_080FD5B4[itemID2].unk; if (temp == gUnk_080FD5B4[gSave.stats.itemButtons[SLOT_A]].unk) { itemSlot = 0; } else {