diff --git a/src/pokedex.c b/src/pokedex.c index d61a8e6853..4b881d094f 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -7982,15 +7982,16 @@ static u8 PrintPreEvolutions(u8 taskId, u16 species) u16 preEvolutionTwo = 0; u8 numPreEvolutions = 0; + #ifdef POKEMON_EXPANSION + bool8 isMega = FALSE; + sPokedexView->sEvoScreenData.isMega = FALSE; + #endif + #ifdef TX_RANDOMIZER_AND_CHALLENGES if (gSaveBlock1Ptr->tx_Random_Evolutions || gSaveBlock1Ptr->tx_Random_EvolutionMethods) return 0; #endif - #ifdef POKEMON_EXPANSION - bool8 isMega = FALSE; - sPokedexView->sEvoScreenData.isMega = FALSE; - #endif //Calculate previous evolution for (i = 0; i < NUM_SPECIES; i++)