aboutsummaryrefslogtreecommitdiffstats
path: root/engine/menu/pc.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-06-12 00:54:49 -0700
committerGitHub <noreply@github.com>2016-06-12 00:54:49 -0700
commitbcf0bd960b03720a02669ed2b6d3a22df60cf0b2 (patch)
tree2ffb3b9c8eca5fc4e2be2fc8aaf4965f64a13296 /engine/menu/pc.asm
parentMerge pull request #13 from YamaArashi/master (diff)
parentmore syncing with pokered (diff)
downloadpokeyellow-bcf0bd960b03720a02669ed2b6d3a22df60cf0b2.tar.gz
pokeyellow-bcf0bd960b03720a02669ed2b6d3a22df60cf0b2.tar.xz
pokeyellow-bcf0bd960b03720a02669ed2b6d3a22df60cf0b2.zip
Merge pull request #16 from YamaArashi/master
sync engine code with 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