GetEggSpecies: Only enabled species (#8221)
This commit is contained in:
parent
6d09eb2402
commit
586571391f
@ -504,6 +504,8 @@ static u16 GetEggSpecies(u16 species)
|
|||||||
found = FALSE;
|
found = FALSE;
|
||||||
for (j = 1; j < NUM_SPECIES; j++)
|
for (j = 1; j < NUM_SPECIES; j++)
|
||||||
{
|
{
|
||||||
|
if (!IsSpeciesEnabled(j))
|
||||||
|
continue;
|
||||||
const struct Evolution *evolutions = GetSpeciesEvolutions(j);
|
const struct Evolution *evolutions = GetSpeciesEvolutions(j);
|
||||||
if (evolutions == NULL)
|
if (evolutions == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user