summaryrefslogtreecommitdiff
path: root/src/battle_script_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/battle_script_commands.c')
-rw-r--r--src/battle_script_commands.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c
index 2e992e027..132de3626 100644
--- a/src/battle_script_commands.c
+++ b/src/battle_script_commands.c
@@ -5598,7 +5598,7 @@ static void atk24(void)
HP_count += GetMonData(&gEnemyParty[i], MON_DATA_HP);
}
- if (!HP_count)
+ if (HP_count == 0)
gBattleOutcome |= B_OUTCOME_WON;
if (!gBattleOutcome && (gBattleTypeFlags & BATTLE_TYPE_LINK))
@@ -5630,11 +5630,12 @@ static void atk24(void)
gBattlescriptCurrInstr += 5;
}
}
- else // b 0x8020B46
+ else
{
gBattlescriptCurrInstr += 5;
}
}
+ // b 0x8020B46
}
#else
NAKED