summaryrefslogtreecommitdiff
path: root/engine/items/switch_items.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-10 20:12:38 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-13 10:59:22 -0400
commit4eeab8973c8367b3ae8885d158197392489e6174 (patch)
tree4734c3387645630e3092ef858b2433159a8abdf6 /engine/items/switch_items.asm
parent30c327276c937e06e3c8b7990cb9029937739f8e (diff)
Disassemble the final English debug ROMs
Diffstat (limited to 'engine/items/switch_items.asm')
-rw-r--r--engine/items/switch_items.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/items/switch_items.asm b/engine/items/switch_items.asm
index cb1554d7..794362ba 100644
--- a/engine/items/switch_items.asm
+++ b/engine/items/switch_items.asm
@@ -96,11 +96,11 @@ Function248cf:
jr nz, .asm_248f5
ld a, [wScrollingMenuCursorPosition]
call Function249bf
- cp 99
+ cp MAX_ITEM_STACK
jr z, .asm_248f5
ld a, [wSwitchItem]
call Function249bf
- cp 99
+ cp MAX_ITEM_STACK
jr nz, .asm_248f7
.asm_248f5
and a
@@ -121,14 +121,14 @@ Function248f9:
ld a, [hl]
pop hl
add [hl]
- cp 100
+ cp MAX_ITEM_STACK + 1
jr c, .asm_24929
- 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