summaryrefslogtreecommitdiff
path: root/src/battle_ai_script_commands.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-09-08 16:31:47 -0400
committerGitHub <noreply@github.com>2020-09-08 16:31:47 -0400
commit818bc4ebe5893783ef386b10b8b0ec6b4967086b (patch)
tree4239d2cb1ce9d69df2d6e872dc993ad06ee08776 /src/battle_ai_script_commands.c
parent16ecbc6446f4e8d308e71aa5e649c69acb8a6b3e (diff)
parent4d31980359af92c407a15358d3c73ba47d6f00b7 (diff)
Merge pull request #1179 from PokeCodec/Maintenance
Match CheckBagHasSpace
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 748e4729a..032e5f407 100644
--- a/src/battle_ai_script_commands.c
+++ b/src/battle_ai_script_commands.c
@@ -1299,7 +1299,7 @@ static void Cmd_count_usable_party_mons(void)
if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE)
{
- u32 position;
+ u8 position;
battlerOnField1 = gBattlerPartyIndexes[battlerId];
position = GetBattlerPosition(battlerId) ^ BIT_FLANK;
battlerOnField2 = gBattlerPartyIndexes[GetBattlerAtPosition(position)];