summaryrefslogtreecommitdiff
path: root/engine/items/items.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/items/items.asm')
-rwxr-xr-xengine/items/items.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/items/items.asm b/engine/items/items.asm
index 7cd1de67..c24d580b 100755
--- a/engine/items/items.asm
+++ b/engine/items/items.asm
@@ -139,10 +139,10 @@ GetPocketCapacity: ; d290 (3:5290)
.asm_d29b
ld c, MAX_PC_ITEMS
ld a, e
- cp wPCItems % $100
+ cp LOW(wNumPCItems)
jr nz, .asm_d2a6
ld a, d
- cp wPCItems / $100
+ cp HIGH(wNumPCItems)
ret z
.asm_d2a6
ld c, MAX_BALLS