mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-17 23:01:00 -04:00
Match func_801457CC (z_sram_NES.c OK) (#1472)
* Match func_801457CC * cleanup * pads * ITEM_NUM_SLOTS * fix macro
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user