Fixed compile when using both Pokémon expansion and randomizer/challenges

This commit is contained in:
Eduardo Quezada 2022-04-25 11:19:13 -04:00
parent 02ac6bbead
commit 59fea06bad

View File

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