From 6fe56af2cd63abaf30040cc5031e3db5358cf638 Mon Sep 17 00:00:00 2001 From: Rangi Date: Thu, 5 Nov 2020 10:51:02 -0500 Subject: Organize home and macro code --- engine/items/inventory.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/items') 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 -- cgit v1.3.1-sl0p