Skip to content

Commit

Permalink
Flip condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AreaZR committed Oct 19, 2024
1 parent 62deeb6 commit 3169dbd
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 @@ -2914,7 +2914,7 @@ u8 GetLevelFromMonExp(struct Pokemon *mon)
// In the event gExperience level is changed and level is 1, to prevent level from being 0.
// Does not happen in vanilla.
#ifdef BUGFIX
return level <= 1 ? 1 : level - 1;
return level > 1 ? level - 1 : 1;
#else
return level - 1;
#endif
Expand Down

0 comments on commit 3169dbd

Please sign in to comment.