From 4d9580ffbbf58a48f3b8250079e8ef850fcd7ca7 Mon Sep 17 00:00:00 2001 From: hedara90 <90hedara@gmail.com> Date: Sat, 7 Mar 2026 12:14:40 +0100 Subject: [PATCH] Fix GetSpeciesPreEvolution triggering assertf with disabled species (#9455) Co-authored-by: Hedara --- src/pokemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokemon.c b/src/pokemon.c index 2c923a5b54..1fea08941f 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -7233,7 +7233,7 @@ u16 GetSpeciesPreEvolution(u16 species) 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; } }