diff options
Diffstat (limited to 'engine/items')
| -rw-r--r-- | engine/items/inventory.asm | 2 |
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 |
