Corrected initial value of targetSpecies in GetEvolutionTargetSpecies (#4269)

This commit is contained in:
LOuroboros 2024-03-11 15:47:04 -03:00 committed by GitHub
parent 0dabcfc966
commit cd650ae998
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);