aboutsummaryrefslogtreecommitdiffstats
path: root/engine/items
diff options
context:
space:
mode:
authorRangi <sylvie.oukaour+rangi42@gmail.com>2025-09-26 16:55:23 -0400
committerRangi <sylvie.oukaour+rangi42@gmail.com>2025-09-26 16:55:23 -0400
commit628797baffe7ea7dd4b224116d9704c7ae1b9c29 (patch)
treec018e77ef1f05cf777f3349f04165a1c78d2dc3d /engine/items
parentClean up home/copy2.asm (#531) (diff)
downloadpokeyellow-628797baffe7ea7dd4b224116d9704c7ae1b9c29.tar.gz
pokeyellow-628797baffe7ea7dd4b224116d9704c7ae1b9c29.tar.xz
pokeyellow-628797baffe7ea7dd4b224116d9704c7ae1b9c29.zip
Revise some RAM buffer constants
Diffstat (limited to 'engine/items')
-rw-r--r--engine/items/item_effects.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm
index 8a96c517..1b68e47a 100644
--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -2195,7 +2195,7 @@ ItemUseTMHM:
.chooseMon
ld hl, wStringBuffer
ld de, wTempMoveNameBuffer
- ld bc, 14
+ ld bc, ITEM_NAME_LENGTH + 1
call CopyData ; save the move name because DisplayPartyMenu will overwrite it
ld a, $ff
ld [wUpdateSpritesEnabled], a
@@ -2205,7 +2205,7 @@ ItemUseTMHM:
push af
ld hl, wTempMoveNameBuffer
ld de, wStringBuffer
- ld bc, 14
+ ld bc, ITEM_NAME_LENGTH + 1
call CopyData
pop af
jr nc, .checkIfAbleToLearnMove