summaryrefslogtreecommitdiff
path: root/src/battle_script_commands.c
diff options
context:
space:
mode:
authorPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-09 10:35:40 -0400
committerPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-09 10:35:40 -0400
commit779764b70dd113df4090dc09949e5a6b0dd71db0 (patch)
tree2233614ea070fc508863b03b64e893db3af3eae6 /src/battle_script_commands.c
parent8f6d6b933e081d6e7a35b52bd36da9d11952145b (diff)
Fix Battle_Script_commands fakematch
Diffstat (limited to 'src/battle_script_commands.c')
-rw-r--r--src/battle_script_commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c
index 7ded6fcd8..309b375e7 100644
--- a/src/battle_script_commands.c
+++ b/src/battle_script_commands.c
@@ -7134,11 +7134,11 @@ static void Cmd_forcerandomswitch(void)
register s32 lastMonId asm("r8") = 0; // + 1
#endif // NONMATCHING
- s32 firstMonId = 0;
- s32 monsCount = 0;
+ s32 firstMonId;
+ s32 monsCount;
struct Pokemon* party = NULL;
s32 validMons = 0;
- s32 minNeeded = 0;
+ s32 minNeeded;
if ((gBattleTypeFlags & BATTLE_TYPE_TRAINER))
{