From 0de7808dedff6e94aef542a0f838bc1e946706d7 Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 3 Aug 2020 15:22:28 -0400 Subject: [PATCH] Identify constant in NamingScreen_IsTargetBox --- engine/menus/naming_screen.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/menus/naming_screen.asm b/engine/menus/naming_screen.asm index f9413a6ee..11685382d 100644 --- a/engine/menus/naming_screen.asm +++ b/engine/menus/naming_screen.asm @@ -246,10 +246,11 @@ NamingScreen: 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