Use assertions to catch the GetName bug, and use a NAME_BUFFER_LENGTH constant

This commit is contained in:
Rangi 2021-04-13 20:08:07 -04:00
parent 506a14084e
commit 4b64b146e4
4 changed files with 22 additions and 11 deletions

View file

@ -210,7 +210,7 @@ GetDefaultName:
ld h, d
ld l, e
ld de, wcd6d
ld bc, $14
ld bc, NAME_BUFFER_LENGTH
jp CopyData
INCLUDE "data/player_names_list.asm"