From cd650ae9987687456ce7f949694db98eac68fbcc Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Mon, 11 Mar 2024 15:47:04 -0300 Subject: [PATCH] Corrected initial value of targetSpecies in GetEvolutionTargetSpecies (#4269) --- src/pokemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokemon.c b/src/pokemon.c index 050e5e14d8af..ee3cc643b84b 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -3766,7 +3766,7 @@ u8 GetNatureFromPersonality(u32 personality) u16 GetEvolutionTargetSpecies(struct Pokemon *mon, u8 mode, u16 evolutionItem, struct Pokemon *tradePartner) { int i, j; - u16 targetSpecies = 0; + u16 targetSpecies = SPECIES_NONE; u16 species = GetMonData(mon, MON_DATA_SPECIES, 0); u16 heldItem = GetMonData(mon, MON_DATA_HELD_ITEM, 0); u32 personality = GetMonData(mon, MON_DATA_PERSONALITY, 0);