summaryrefslogtreecommitdiff
path: root/engine/items/switch_items.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2020-07-13 16:16:32 -0400
committerGitHub <noreply@github.com>2020-07-13 16:16:32 -0400
commit5360c14c46d904c67e8fd26824819725b4fa62ff (patch)
tree4734c3387645630e3092ef858b2433159a8abdf6 /engine/items/switch_items.asm
parent30c327276c937e06e3c8b7990cb9029937739f8e (diff)
parent4eeab8973c8367b3ae8885d158197392489e6174 (diff)
Merge pull request #56 from Rangi42/master
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