Fixed Eggs sometimes reading garbage graphic data.
This commit is contained in:
parent
b74997f82e
commit
263ed33755
1 changed files with 2 additions and 0 deletions
|
@ -8621,6 +8621,8 @@ void TrySpecialOverworldEvo(void)
|
||||||
|
|
||||||
bool32 ShouldShowFemaleDifferences(u16 species, u32 personality)
|
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;
|
return (gSpeciesInfo[species].flags & SPECIES_FLAG_GENDER_DIFFERENCE) && GetGenderFromSpeciesAndPersonality(species, personality) == MON_FEMALE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue