summaryrefslogtreecommitdiff
path: root/src/script_menu.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-02-28 10:28:43 -0500
committerGitHub <noreply@github.com>2021-02-28 10:28:43 -0500
commit1912b0cf0a0f42f23200ecffcb22651015478ef6 (patch)
treed855404809d36965aaa76784bae08bdf6ea92cc7 /src/script_menu.c
parent2dfa84c10ff497d73b3a201480fa568ba62e5a38 (diff)
parentea748ff7f51a7c119658930f878d046cc8b83c51 (diff)
Merge branch 'master' into doc-rtcscreen
Diffstat (limited to 'src/script_menu.c')
-rw-r--r--src/script_menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script_menu.c b/src/script_menu.c
index 425cdc251..51c37b5b6 100644
--- a/src/script_menu.c
+++ b/src/script_menu.c
@@ -580,7 +580,7 @@ bool8 ScriptMenu_ShowPokemonPic(u16 species, u8 x, u8 y)
u8 taskId;
u8 spriteId;
- if (FindTaskIdByFunc(Task_PokemonPicWindow) != 0xFF)
+ if (FindTaskIdByFunc(Task_PokemonPicWindow) != TASK_NONE)
{
return FALSE;
}
@@ -604,7 +604,7 @@ bool8 (*ScriptMenu_GetPicboxWaitFunc(void))(void)
{
u8 taskId = FindTaskIdByFunc(Task_PokemonPicWindow);
- if (taskId == 0xFF)
+ if (taskId == TASK_NONE)
return NULL;
gTasks[taskId].tState++;
return IsPicboxClosed;
@@ -612,7 +612,7 @@ bool8 (*ScriptMenu_GetPicboxWaitFunc(void))(void)
static bool8 IsPicboxClosed(void)
{
- if (FindTaskIdByFunc(Task_PokemonPicWindow) == 0xFF)
+ if (FindTaskIdByFunc(Task_PokemonPicWindow) == TASK_NONE)
return TRUE;
else
return FALSE;