diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-13 13:05:05 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-13 15:18:28 -0400 |
commit | e239aa4aba89156ac52b2af26d1bbf084ee88e75 (patch) | |
tree | 28e1dd069acc5c1a88662ce275f7102da68f3c4e /engine/items/switch_items.asm | |
parent | 4fb008844030283ad34cb0802b088b4dd7c9891c (diff) |
Disassemble the final English debug ROM
Diffstat (limited to 'engine/items/switch_items.asm')
-rw-r--r-- | engine/items/switch_items.asm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/items/switch_items.asm b/engine/items/switch_items.asm index 680e548c1..fc6fce6a4 100644 --- a/engine/items/switch_items.asm +++ b/engine/items/switch_items.asm @@ -96,11 +96,11 @@ Function249a7: jr nz, .asm_249cd ld a, [wScrollingMenuCursorPosition] call Function24a97 - cp 99 + cp MAX_ITEM_STACK jr z, .asm_249cd ld a, [wSwitchItem] call Function24a97 - cp 99 + cp MAX_ITEM_STACK jr nz, .asm_249cf .asm_249cd and a @@ -121,14 +121,14 @@ Function249d1: ld a, [hl] pop hl add [hl] - cp 100 + cp MAX_ITEM_STACK + 1 jr c, .asm_24a01 - sub 99 + sub MAX_ITEM_STACK push af ld a, [wScrollingMenuCursorPosition] call ItemSwitch_GetNthItem inc hl - ld [hl], 99 + ld [hl], MAX_ITEM_STACK ld a, [wSwitchItem] call ItemSwitch_GetNthItem inc hl |