summaryrefslogtreecommitdiff
path: root/src/daycare.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2020-03-21 10:48:55 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2020-03-21 10:48:55 -0400
commit218555e72ceeb55ad21c942c55796130cc3eb864 (patch)
treed078744968ead07091d07afd3c2d80aacacef7db /src/daycare.c
parent47fe2cb9ce8b2aec7d40fe5f44c1248b090606d6 (diff)
through sub_811D5C0
Diffstat (limited to 'src/daycare.c')
-rw-r--r--src/daycare.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daycare.c b/src/daycare.c
index 0a19c6c9b..e07c2a234 100644
--- a/src/daycare.c
+++ b/src/daycare.c
@@ -479,7 +479,7 @@ static void ApplyDaycareExperience(struct Pokemon *mon)
bool8 firstMove;
u16 learnedMove;
- for (i = 0; i < MAX_MON_LEVEL; i++)
+ for (i = 0; i < MAX_LEVEL; i++)
{
// Add the mon's gained daycare experience level by level until it can't level up anymore.
if (TryIncrementMonLevel(mon))
@@ -513,7 +513,7 @@ static u16 TakeSelectedPokemonFromDaycare(struct DaycareMon *daycareMon)
species = GetBoxMonData(&daycareMon->mon, MON_DATA_SPECIES);
BoxMonToMon(&daycareMon->mon, &pokemon);
- if (GetMonData(&pokemon, MON_DATA_LEVEL) != MAX_MON_LEVEL)
+ if (GetMonData(&pokemon, MON_DATA_LEVEL) != MAX_LEVEL)
{
experience = GetMonData(&pokemon, MON_DATA_EXP) + daycareMon->steps;
SetMonData(&pokemon, MON_DATA_EXP, &experience);