diff options
author | GriffinR <griffin.richards@comcast.net> | 2019-09-08 12:21:24 -0400 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-09-16 19:21:23 -0500 |
commit | b46c4b670339754ca83fd9f2809f13d4de0dc6a5 (patch) | |
tree | c1e4b1f76785a3d26047ada7eab8119281386990 /src/battle_ai_script_commands.c | |
parent | 85d97542cdb269278aad3cc3735c29845f9d8738 (diff) |
more constant usage
Diffstat (limited to 'src/battle_ai_script_commands.c')
-rw-r--r-- | src/battle_ai_script_commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle_ai_script_commands.c b/src/battle_ai_script_commands.c index 6a8163b96..b581a8bbc 100644 --- a/src/battle_ai_script_commands.c +++ b/src/battle_ai_script_commands.c @@ -298,7 +298,7 @@ void BattleAI_HandleItemUseBeforeAISetup(u8 defaultScoreMoves) ) ) { - for (i = 0; i < 4; i++) + for (i = 0; i < MAX_TRAINER_ITEMS; i++) { if (gTrainers[gTrainerBattleOpponent_A].items[i] != 0) { |