Use STRING_BUFFER_LENGTH for the wStringBuffers

This commit is contained in:
Rangi
2020-11-24 20:11:17 -05:00
parent 4ca9f45db7
commit 4613bcfadf
6 changed files with 14 additions and 11 deletions

View File

@@ -73,7 +73,7 @@ AskTeachTMHM:
ChooseMonToLearnTMHM:
ld hl, wStringBuffer2
ld de, wTMHMMoveNameBackup
ld bc, 12
ld bc, MOVE_NAME_LENGTH - 1
call CopyBytes
call ClearBGPalettes
ChooseMonToLearnTMHM_NoRefresh:
@@ -97,7 +97,7 @@ ChooseMonToLearnTMHM_NoRefresh:
push bc
ld hl, wTMHMMoveNameBackup
ld de, wStringBuffer2
ld bc, 12
ld bc, MOVE_NAME_LENGTH - 1
call CopyBytes
pop af ; now contains the original contents of af
ret