summaryrefslogtreecommitdiff
path: root/engine/items
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-11-05 10:51:02 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-11-05 10:51:02 -0500
commit6fe56af2cd63abaf30040cc5031e3db5358cf638 (patch)
treeb024aa8480912ebf2667184068466ee7f354012c /engine/items
parented03fc4f4a3287a01647e528abba27aac1937de0 (diff)
Organize home and macro code
Diffstat (limited to 'engine/items')
-rw-r--r--engine/items/inventory.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/items/inventory.asm b/engine/items/inventory.asm
index c2e0b2b4..86003319 100644
--- a/engine/items/inventory.asm
+++ b/engine/items/inventory.asm
@@ -36,7 +36,7 @@ AddItemToInventory_::
inc hl
.loop
ld a, [hl]
- cp a, $ff ; is it the end of the table?
+ cp $ff ; is it the end of the table?
jr nz, .notAtEndOfInventory
.addNewItem ; add an item not yet in the inventory
pop hl