summaryrefslogtreecommitdiff
path: root/src/berry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/berry.c')
-rw-r--r--src/berry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/berry.c b/src/berry.c
index 3f59639ad..e548d3c57 100644
--- a/src/berry.c
+++ b/src/berry.c
@@ -1225,10 +1225,10 @@ static u8 CalcBerryYieldInternal(u16 max, u16 min, u8 water)
rand = randMin + Random() % (randMax - randMin + 1);
// Round upwards
- if ((rand % NUM_BERRY_STAGES) >= NUM_BERRY_STAGES / 2)
- extraYield = rand / NUM_BERRY_STAGES + 1;
+ if ((rand % NUM_WATER_STAGES) >= NUM_WATER_STAGES / 2)
+ extraYield = rand / NUM_WATER_STAGES + 1;
else
- extraYield = rand / NUM_BERRY_STAGES;
+ extraYield = rand / NUM_WATER_STAGES;
return extraYield + min;
}
}