From 3169dbddcced81b9b9b2c04b9ec49f90bdfb9eb9 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AreaZR@users.noreply.github.com> Date: Sat, 19 Oct 2024 16:45:04 -0400 Subject: [PATCH] Flip condition --- src/pokemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokemon.c b/src/pokemon.c index 1914fd0fad27..6a720a4a19c0 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -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