Prevent unused variable error with Gen3 Shedinja config.

This commit is contained in:
Zimmermann Gyula 2023-12-13 18:41:10 +01:00
parent a68cf9f4dc
commit 0239e470cb

View file

@ -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)