diff --git a/src/pokemon.c b/src/pokemon.c index 2475b2bfa6..477cf48dcb 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -6325,9 +6325,9 @@ u16 GetEvolutionTargetSpecies(struct Pokemon *mon, u8 mode, u16 evolutionItem, u { for (j = 0; j < PARTY_SIZE; j++) { - u16 species = GetMonData(&gPlayerParty[j], MON_DATA_SPECIES, NULL); - if (gBaseStats[species].type1 == TYPE_DARK - || gBaseStats[species].type2 == TYPE_DARK) + u16 currSpecies = GetMonData(&gPlayerParty[j], MON_DATA_SPECIES, NULL); + if (gBaseStats[currSpecies].type1 == TYPE_DARK + || gBaseStats[currSpecies].type2 == TYPE_DARK) { targetSpecies = gEvolutionTable[species][i].targetSpecies; break;