Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove pending battle algorithms when battle ends (Fix #652)
  • Loading branch information
Ghabry committed Dec 5, 2015
1 parent 5cb0157 commit 51a630f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game_battle.cpp
Expand Up @@ -89,6 +89,7 @@ void Game_Battle::Quit() {
// Remove conditions which end after battle
for (std::vector<Game_Battler*>::iterator it = allies.begin(); it != allies.end(); it++) {
(*it)->RemoveBattleStates();
(*it)->SetBattleAlgorithm(BattleAlgorithmRef());
}

Main_Data::game_party->ResetBattle();
Expand Down

0 comments on commit 51a630f

Please sign in to comment.