summaryrefslogtreecommitdiff
path: root/src/pokemon.c
diff options
context:
space:
mode:
authorkiliwily <69381603+kiliwily@users.noreply.github.com>2020-09-19 20:46:26 +0200
committerkiliwily <69381603+kiliwily@users.noreply.github.com>2020-09-19 20:46:26 +0200
commitf1366dfc694c78ac934e58a917a173f95c55df28 (patch)
treed7ff02e9ef044dfd0bb50181983bed06ae4afca2 /src/pokemon.c
parent56848fb891f55acdc98ee1b5956ffd2b1c8174eb (diff)
Fix typos
Diffstat (limited to 'src/pokemon.c')
-rw-r--r--src/pokemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pokemon.c b/src/pokemon.c
index b6bec0329..30f0b0e73 100644
--- a/src/pokemon.c
+++ b/src/pokemon.c
@@ -2861,8 +2861,8 @@ void CalculateMonStats(struct Pokemon *mon)
if (currentHP == 0 && oldMaxHP == 0)
currentHP = newMaxHP;
else if (currentHP != 0)
- //BUG: currentHP is unintentionally able to become <= 0 after the instruction below. This causes the pomeg berry glitch.
- //To fix this add another if statement after the instruction that sets currentHP = 1 if currentHP <= 0.
+ // BUG: currentHP is unintentionally able to become <= 0 after the instruction below. This causes the pomeg berry glitch.
+ // To fix that set currentHP = 1 if currentHP <= 0.
currentHP += newMaxHP - oldMaxHP;
else
return;