GetEggSpecies: Only enabled species (#8221)

This commit is contained in:
Martin Griffin 2025-11-13 12:50:35 +00:00 committed by GitHub
parent 6d09eb2402
commit 586571391f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -504,6 +504,8 @@ static u16 GetEggSpecies(u16 species)
found = FALSE;
for (j = 1; j < NUM_SPECIES; j++)
{
if (!IsSpeciesEnabled(j))
continue;
const struct Evolution *evolutions = GetSpeciesEvolutions(j);
if (evolutions == NULL)
continue;