summaryrefslogtreecommitdiff
path: root/home/string.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2019-06-17 07:29:30 -0400
committerGitHub <noreply@github.com>2019-06-17 07:29:30 -0400
commitf1bab45624a3a2d5f6bf5b63e912382de0a30abd (patch)
treea119b4a04697bba53c0f9617283ed9a467fc6236 /home/string.asm
parentfbc2c55cdb2f18a933af3daf9294750f254c23a5 (diff)
parent7e84f7240328af68723f8419d5079daea32cf21d (diff)
Merge pull request #638 from mid-kid/master
beep boop
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.