aboutsummaryrefslogtreecommitdiffstats
path: root/engine/events/pokemart.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/events/pokemart.asm')
-rw-r--r--engine/events/pokemart.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/events/pokemart.asm b/engine/events/pokemart.asm
index a1d69c72..b280c711 100644
--- a/engine/events/pokemart.asm
+++ b/engine/events/pokemart.asm
@@ -72,7 +72,7 @@ DisplayPokemartDialogue_::
ld a, [wIsKeyItem]
and a
jr nz, .unsellableItem
- ld a, [wcf91]
+ ld a, [wCurItem]
call IsItemHM
jr c, .unsellableItem
ld a, PRICEDITEMLISTMENU
@@ -156,8 +156,8 @@ DisplayPokemartDialogue_::
call DisplayChooseQuantityMenu
inc a
jr z, .buyMenuLoop ; if the player closed the choose quantity menu with the B button
- ld a, [wcf91] ; item ID
- ld [wd11e], a ; store item ID for GetItemName
+ ld a, [wCurItem]
+ ld [wNamedObjectIndex], a
call GetItemName
call CopyToStringBuffer
ld hl, PokemartTellBuyPriceText