summaryrefslogtreecommitdiff
path: root/src/pokemon.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-02-19 23:22:26 -0500
committerGriffinR <griffin.g.richards@gmail.com>2021-02-24 11:03:25 -0500
commita5852d57d124c49fd1b80510e968c18404a436a3 (patch)
treeb1b37f32e5eb22286c487d74c8db9deecf14c00d /src/pokemon.c
parente52b46ab43d50b02734d1b1b9eeeccdc8daf9789 (diff)
Use TASK_NONE constant
Diffstat (limited to 'src/pokemon.c')
-rw-r--r--src/pokemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pokemon.c b/src/pokemon.c
index f0d50ba0e..2abf9cb56 100644
--- a/src/pokemon.c
+++ b/src/pokemon.c
@@ -6706,7 +6706,7 @@ void PokemonSummaryDoMonAnimation(struct Sprite* sprite, u16 species, bool8 oneF
void StopPokemonAnimationDelayTask(void)
{
u8 delayTaskId = FindTaskIdByFunc(Task_PokemonSummaryAnimateAfterDelay);
- if (delayTaskId != 0xFF)
+ if (delayTaskId != TASK_NONE)
DestroyTask(delayTaskId);
}