aboutsummaryrefslogtreecommitdiffstats
path: root/engine/menu/pc.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2016-06-12 03:01:20 -0500
committerdannye <corrnondacqb@yahoo.com>2016-06-12 03:01:20 -0500
commitce3ec76762d9e2f0c560e2ea7868678418883143 (patch)
tree13bd307196f870d59157ab803c858c205eba6921 /engine/menu/pc.asm
parentRemove more address comments (diff)
parentMerge pull request #16 from YamaArashi/master (diff)
downloadpokeyellow-ce3ec76762d9e2f0c560e2ea7868678418883143.tar.gz
pokeyellow-ce3ec76762d9e2f0c560e2ea7868678418883143.tar.xz
pokeyellow-ce3ec76762d9e2f0c560e2ea7868678418883143.zip
Merge branch 'master' of https://github.com/pret/pokeyellow into merge-pokered
Diffstat (limited to 'engine/menu/pc.asm')
-rwxr-xr-xengine/menu/pc.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/menu/pc.asm b/engine/menu/pc.asm
index b31970c8..c9e2cf08 100755
--- a/engine/menu/pc.asm
+++ b/engine/menu/pc.asm
@@ -123,10 +123,10 @@ RemoveItemByID:
ld [hItemToRemoveIndex], a
.loop
ld a, [hli]
- cp $ff ; have we reached the cancel button (terminator)
+ cp -1 ; reached terminator?
ret z
- cp b ; is the current item the item we want?
- jr z, .foundItem ; if so, remove it from the inventory
+ cp b
+ jr z, .foundItem
inc hl
ld a, [hItemToRemoveIndex]
inc a