summaryrefslogtreecommitdiff
path: root/engine/events
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2019-03-30 16:51:30 -0400
committerGitHub <noreply@github.com>2019-03-30 16:51:30 -0400
commitec8869584ff7a02ab1ca12fe8b5e6652034f2f17 (patch)
treec5f73ab73975166562e74d4a1889be63f160fc87 /engine/events
parent179dc85ba1464ce6ec358f54a638e1dd70fb8283 (diff)
parente598e49edb0e7107a81214499f5517fb7d3f3bf5 (diff)
Merge pull request #617 from FredrIQ/master
Fix wram labeling for wPCItems
Diffstat (limited to 'engine/events')
-rw-r--r--engine/events/mom_phone.asm2
-rw-r--r--engine/events/pokecenter_pc.asm8
2 files changed, 5 insertions, 5 deletions
diff --git a/engine/events/mom_phone.asm b/engine/events/mom_phone.asm
index 48e879ed9..27144b339 100644
--- a/engine/events/mom_phone.asm
+++ b/engine/events/mom_phone.asm
@@ -147,7 +147,7 @@ Mom_GiveItemOrDoll:
ld [wCurItem], a
ld a, 1
ld [wItemQuantityChangeBuffer], a
- ld hl, wPCItems
+ ld hl, wNumPCItems
call ReceiveItem
ret
diff --git a/engine/events/pokecenter_pc.asm b/engine/events/pokecenter_pc.asm
index 3dc02372d..767495592 100644
--- a/engine/events/pokecenter_pc.asm
+++ b/engine/events/pokecenter_pc.asm
@@ -354,7 +354,7 @@ PlayerWithdrawItemMenu:
ld [wItemQuantityChangeBuffer], a
ld a, [wBuffer2]
ld [wCurItemQuantity], a
- ld hl, wPCItems
+ ld hl, wNumPCItems
call TossItem
predef PartyMonItemName
ld hl, .WithdrewText
@@ -390,7 +390,7 @@ PlayerTossItemMenu:
.loop
call PCItemsJoypad
jr c, .quit
- ld de, wPCItems
+ ld de, wNumPCItems
farcall TossItemFromPC
jr .loop
@@ -509,7 +509,7 @@ PlayerDepositItemMenu:
ld [wBuffer1], a
ld a, [wCurItemQuantity]
ld [wBuffer2], a
- ld hl, wPCItems
+ ld hl, wNumPCItems
call ReceiveItem
jr nc, .NoRoomInPC
ld a, [wBuffer1]
@@ -628,7 +628,7 @@ PCItemsJoypad:
db SCROLLINGMENU_ENABLE_SELECT | SCROLLINGMENU_ENABLE_FUNCTION3 | SCROLLINGMENU_DISPLAY_ARROWS ; flags
db 4, 8 ; rows/cols?
db 2 ; horizontal spacing?
- dbw 0, wPCItems
+ dbw 0, wNumPCItems
dba PlaceMenuItemName
dba PlaceMenuItemQuantity
dba UpdateItemDescription