Match func_801457CC (z_sram_NES.c OK) (#1472)

* Match func_801457CC

* cleanup

* pads

* ITEM_NUM_SLOTS

* fix macro
This commit is contained in:
engineer124
2023-11-12 09:08:39 +11:00
committed by GitHub
parent 8d33d36a9b
commit 71d83a5e15
4 changed files with 69 additions and 71 deletions
+1 -1
View File
@@ -3121,7 +3121,7 @@ void Inventory_UnequipItem(s16 item) {
s32 Inventory_ReplaceItem(PlayState* play, u8 oldItem, u8 newItem) {
u8 i;
for (i = 0; i < 24; i++) {
for (i = 0; i < ITEM_NUM_SLOTS; i++) {
if (gSaveContext.save.saveInfo.inventory.items[i] == oldItem) {
gSaveContext.save.saveInfo.inventory.items[i] = newItem;