summaryrefslogtreecommitdiff
path: root/src/battle_ai_script_commands.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-11-03 09:28:45 -0500
committerGitHub <noreply@github.com>2020-11-03 09:28:45 -0500
commit99dd461befcfe3bef3ce188fea2fb372c2f21b98 (patch)
tree2b0198d394186c371987f018677d12f929a66a44 /src/battle_ai_script_commands.c
parent9e55ae22b19d58eca8fc0cdd2fcea9f2cca14319 (diff)
parentca950a8daf6dd95ab5dacc51f250fea7b605361c (diff)
Merge pull request #1189 from aaaaaa123456789/reverts
Undo PokeCodec's PRs and port changes
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 1fd0642ad..4185f8017 100644
--- a/src/battle_ai_script_commands.c
+++ b/src/battle_ai_script_commands.c
@@ -1298,7 +1298,7 @@ static void Cmd_count_usable_party_mons(void)
if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE)
{
- u8 position;
+ u32 position;
battlerOnField1 = gBattlerPartyIndexes[battlerId];
position = GetBattlerPosition(battlerId) ^ BIT_FLANK;
battlerOnField2 = gBattlerPartyIndexes[GetBattlerAtPosition(position)];