Merge pull request #2539 from AsparagusEduardo/RHH/pr/fix/FixEgg

Fixed Eggs sometimes reading garbage graphic data.
This commit is contained in:
ghoulslash 2023-01-02 13:27:28 -05:00 committed by GitHub
commit a06135b2f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}