summaryrefslogtreecommitdiff
path: root/home/string.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/string.asm')
-rw-r--r--home/string.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/string.asm b/home/string.asm
index 702ab50ff..86de2e273 100644
--- a/home/string.asm
+++ b/home/string.asm
@@ -6,7 +6,7 @@ InitString::
InitName::
; Intended for names, so this function is limited to ten characters.
push hl
- ld c, 10
+ ld c, NAME_LENGTH - 1
_InitString::
; if the string pointed to by hl is empty (defined as "zero or more spaces
; followed by a null"), then initialize it to the string pointed to by de.