mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-10 22:31:40 +02:00
battle query fix
This commit is contained in:
@@ -369,6 +369,7 @@ void BattleResultProcessor::endBattleConfirm(const CBattleInfoCallback & battle)
|
||||
raccepted.winnerSide = finishingBattle->winnerSide;
|
||||
gameHandler->sendAndApply(raccepted);
|
||||
|
||||
gameHandler->queries->popIfTop(battleQuery); // Workaround to remove battle query for AI case. TODO Think of a cleaner solution.
|
||||
//--> continuation (battleFinalize) occurs after level-up gameHandler->queries are handled or on removing query
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user