summaryrefslogtreecommitdiff
path: root/src/battle_ai_script_commands.c
diff options
context:
space:
mode:
authorKDSKardabox <bollygame94@gmail.com>2018-12-09 13:44:41 +0530
committerKDSKardabox <bollygame94@gmail.com>2018-12-09 13:44:41 +0530
commit8712757d2454a8ee15680a658ea7df8621954bef (patch)
tree5f0ebfdccc0e22c0e52f8d223ec4889c7597569f /src/battle_ai_script_commands.c
parentf8838491f6c46df771c5414f8b6da781294300b7 (diff)
parent0b91d2948a431a5d44166544897a550061c01a31 (diff)
Merge remote-tracking branch 'upstream/master'
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