diff --git a/src/pokemon.c b/src/pokemon.c index 8e8166fb3..7d121289e 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -8621,6 +8621,8 @@ void TrySpecialOverworldEvo(void) bool32 ShouldShowFemaleDifferences(u16 species, u32 personality) { + if (species >= NUM_SPECIES) + return FALSE; return (gSpeciesInfo[species].flags & SPECIES_FLAG_GENDER_DIFFERENCE) && GetGenderFromSpeciesAndPersonality(species, personality) == MON_FEMALE; }