Skip to content

Commit

Permalink
Corrected initial value of targetSpecies in GetEvolutionTargetSpecies (
Browse files Browse the repository at this point in the history
  • Loading branch information
LOuroboros authored Mar 11, 2024
1 parent 0dabcfc commit cd650ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pokemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cd650ae

Please sign in to comment.