From e2d47a07f5281ac1d6a78942ae1416bdbd152aaf Mon Sep 17 00:00:00 2001 From: Jaizu Date: Thu, 29 Dec 2022 12:28:44 +0100 Subject: [PATCH] Fix ANIM_SPRITE on regular builds with BUGFIX. Dicussion about this being a BUGFIX define instead limiting it only to modern. Credit SBird. --- src/pokemon_animation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokemon_animation.c b/src/pokemon_animation.c index 9a95edf4b..a305851aa 100644 --- a/src/pokemon_animation.c +++ b/src/pokemon_animation.c @@ -901,7 +901,7 @@ u8 GetSpeciesBackAnimSet(u16 species) // as 0xFFFFXXXX instead of the desired 0x02YYXXXX. // By dumb luck, this is not an issue in vanilla. However, // changing the link order revealed this bug. -#if MODERN +#ifdef BUGFIX #define ANIM_SPRITE(taskId) ((struct Sprite *)((gTasks[taskId].tPtrHi << 16) | ((u16)gTasks[taskId].tPtrLo))) #else #define ANIM_SPRITE(taskId) ((struct Sprite *)((gTasks[taskId].tPtrHi << 16) | (gTasks[taskId].tPtrLo)))