summaryrefslogtreecommitdiff
path: root/engine/items
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-11-05 13:23:57 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-11-05 13:23:57 -0500
commit2db54ecb9b2ec41dd40318395f69814af64f6f7b (patch)
tree92dc11a670915c2120344e4ef84f79c844238af1 /engine/items
parent379a563c438a9d758d534fd611c3aed705d3b47a (diff)
Sync more with pokeyellow
Diffstat (limited to 'engine/items')
-rw-r--r--engine/items/inventory.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/items/inventory.asm b/engine/items/inventory.asm
index bf433175..ec1cfd0f 100644
--- a/engine/items/inventory.asm
+++ b/engine/items/inventory.asm
@@ -27,7 +27,7 @@ AddItemToInventory_::
ld a, [hli]
and a
jr z, .addNewItem
-.loop
+.notAtEndOfInventory
ld a, [hli]
ld b, a ; b = ID of current item in table
ld a, [wcf91] ; a = ID of item being added
@@ -36,7 +36,7 @@ AddItemToInventory_::
inc hl
ld a, [hl]
cp $ff ; is it the end of the table?
- jr nz, .loop
+ jr nz, .notAtEndOfInventory
.addNewItem ; add an item not yet in the inventory
pop hl
ld a, d
@@ -73,7 +73,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 .notAtEndOfInventory
.increaseItemQuantityFailed
pop hl
and a