aboutsummaryrefslogtreecommitdiffstats
path: root/engine/items/inventory.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-11-05 13:23:47 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-11-05 15:15:37 -0500
commit472f5824a65eaa76f6c92e66bfabb1a1eac66442 (patch)
tree14b4ba61b32f85c88011ad636f323e1da49b1212 /engine/items/inventory.asm
parentSyn base stats' tmhm formatting with pokered (diff)
downloadpokeyellow-472f5824a65eaa76f6c92e66bfabb1a1eac66442.tar.gz
pokeyellow-472f5824a65eaa76f6c92e66bfabb1a1eac66442.tar.xz
pokeyellow-472f5824a65eaa76f6c92e66bfabb1a1eac66442.zip
Sync more with pokered
Diffstat (limited to 'engine/items/inventory.asm')
-rw-r--r--engine/items/inventory.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/items/inventory.asm b/engine/items/inventory.asm
index 86003319..e28edc6c 100644
--- a/engine/items/inventory.asm
+++ b/engine/items/inventory.asm
@@ -34,7 +34,7 @@ AddItemToInventory_::
cp b ; does the current item in the table match the item being added?
jp z, .increaseItemQuantity ; if so, increase the item's quantity
inc hl
-.loop
+.addAnotherStackOfItem
ld a, [hl]
cp $ff ; is it the end of the table?
jr nz, .notAtEndOfInventory
@@ -74,7 +74,7 @@ AddItemToInventory_::
; if so, store 99 in the current slot and store the rest in a new slot
ld a, 99
ld [hli], a
- jp .loop
+ jp .addAnotherStackOfItem
.increaseItemQuantityFailed
pop hl
and a