mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-04-26 10:25:49 -05:00
Fix GetSpeciesPreEvolution triggering assertf with disabled species (#9455)
Co-authored-by: Hedara <hedara90@gmail.com>
This commit is contained in:
parent
012a63608f
commit
4d9580ffbb
|
|
@ -7233,7 +7233,7 @@ u16 GetSpeciesPreEvolution(u16 species)
|
||||||
|
|
||||||
for (j = 0; evolutions[j].method != EVOLUTIONS_END; j++)
|
for (j = 0; evolutions[j].method != EVOLUTIONS_END; j++)
|
||||||
{
|
{
|
||||||
if (SanitizeSpeciesId(evolutions[j].targetSpecies) == species)
|
if (IsSpeciesEnabled(evolutions[j].targetSpecies) && SanitizeSpeciesId(evolutions[j].targetSpecies) == species)
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user