aboutsummaryrefslogtreecommitdiffstats
path: root/engine/items/item_effects.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2025-12-15 15:16:40 -0500
committerGitHub <noreply@github.com>2025-12-15 15:16:40 -0500
commitd79c578abd993f7eee4e85462a8cd5b7c4e14646 (patch)
treedd89e07a471a12cd6eb731bf559d73940c07b444 /engine/items/item_effects.asm
parentComment more unreferenced local labels (#550) (diff)
downloadpokeyellow-d79c578abd993f7eee4e85462a8cd5b7c4e14646.tar.gz
pokeyellow-d79c578abd993f7eee4e85462a8cd5b7c4e14646.tar.xz
pokeyellow-d79c578abd993f7eee4e85462a8cd5b7c4e14646.zip
Specify a max item length for `list_start` (#552)
Diffstat (limited to 'engine/items/item_effects.asm')
-rw-r--r--engine/items/item_effects.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm
index 12b5bd00..c4ce13de 100644
--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -1308,7 +1308,7 @@ ItemUseMedicine:
jr .statNameLoop
.gotStatName
ld de, wStringBuffer
- ld bc, NAME_LENGTH - 1 ; all VitaminStats are at most 10 bytes
+ ld bc, STAT_NAME_LENGTH
call CopyData ; copy the stat's name to wStringBuffer
ld a, SFX_HEAL_AILMENT
call PlaySound