From 0239e470cb458a6887c66d55ac577972f083990e Mon Sep 17 00:00:00 2001 From: Zimmermann Gyula Date: Wed, 13 Dec 2023 18:41:10 +0100 Subject: [PATCH] Prevent unused variable error with Gen3 Shedinja config. --- src/evolution_scene.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/evolution_scene.c b/src/evolution_scene.c index 0944bf6ffb0c..1bd0e2656154 100644 --- a/src/evolution_scene.c +++ b/src/evolution_scene.c @@ -542,7 +542,9 @@ static void CB2_TradeEvolutionSceneUpdate(void) static void CreateShedinja(u16 preEvoSpecies, struct Pokemon *mon) { u32 data = 0; - u16 ball = ITEM_POKE_BALL; + #if P_SHEDINJA_BALL >= GEN_4 + u16 ball = ITEM_POKE_BALL; + #endif const struct Evolution *evolutions = GetSpeciesEvolutions(preEvoSpecies); if (evolutions == NULL)