summaryrefslogtreecommitdiff
path: root/src/battle_ai_script_commands.c
diff options
context:
space:
mode:
authorgarak <garakmon@gmail.com>2018-12-19 21:35:32 -0500
committergarak <garakmon@gmail.com>2018-12-19 21:35:32 -0500
commitaf208a6bbb671cbf471d08856994470e707c5051 (patch)
tree9a57703eecf8c18f444454f2fae8f5dccf19d408 /src/battle_ai_script_commands.c
parent7e170a06cc3155a6a8785af0b910434e5ab43d2b (diff)
parentf801eed3a84862d88af0d5e43c6b6754e36001f2 (diff)
Merge branch 'fldeff' of https://github.com/garakmon/pokeemerald into fldeff
Diffstat (limited to 'src/battle_ai_script_commands.c')
-rw-r--r--src/battle_ai_script_commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle_ai_script_commands.c b/src/battle_ai_script_commands.c
index 3e7064eb5..a88189870 100644
--- a/src/battle_ai_script_commands.c
+++ b/src/battle_ai_script_commands.c
@@ -463,7 +463,7 @@ static u8 ChooseMoveOrAction_Doubles(void)
{
if (i == sBattler_AI || gBattleMons[i].hp == 0)
{
- actionOrMoveIndex[i] = -1;
+ actionOrMoveIndex[i] = 0xFF;
bestMovePointsForTarget[i] = -1;
}
else