diff options
author | Diegoisawesome <Diegoisawesome@users.noreply.github.com> | 2018-10-14 13:18:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-14 13:18:29 -0500 |
commit | 43316ffae83d49be09969e291779cc9e448b83a1 (patch) | |
tree | 71fa76ae7d624f9988272953bbef9ce4ee5e2ee3 /src/battle_ai_switch_items.c | |
parent | 0979ea91fb247b642cf7aa9e0bea5265917923d8 (diff) | |
parent | ecdf0fd69d8badc2a5491efa7663074a76accc24 (diff) |
Merge pull request #356 from DizzyEggg/clean_battlestruct
Clean a couple of battlestructs' fields
Diffstat (limited to 'src/battle_ai_switch_items.c')
-rw-r--r-- | src/battle_ai_switch_items.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle_ai_switch_items.c b/src/battle_ai_switch_items.c index a105e7edf..40fffd6e5 100644 --- a/src/battle_ai_switch_items.c +++ b/src/battle_ai_switch_items.c @@ -17,7 +17,7 @@ static bool8 ShouldUseItem(void); static bool8 ShouldSwitchIfPerishSong(void) { if (gStatuses3[gActiveBattler] & STATUS3_PERISH_SONG - && gDisableStructs[gActiveBattler].perishSongTimer1 == 0) + && gDisableStructs[gActiveBattler].perishSongTimer == 0) { *(gBattleStruct->AI_monToSwitchIntoId + gActiveBattler) = PARTY_SIZE; BtlController_EmitTwoReturnValues(1, B_ACTION_SWITCH, 0); |