ref: 0de7808dedff6e94aef542a0f838bc1e946706d7
parent: 8cc79c0891c7a4baa046cc0efa90a0244aab4788
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon Aug 3 11:22:28 EDT 2020
Identify constant in NamingScreen_IsTargetBox
--- a/engine/menus/naming_screen.asm
+++ b/engine/menus/naming_screen.asm
@@ -246,10 +246,11 @@
ret
NamingScreen_IsTargetBox:
+; Return z if [wNamingScreenType] == NAME_BOX.
push bc
push af
ld a, [wNamingScreenType]
- sub $3
+ sub NAME_BOX - 1
ld b, a
pop af
dec b