2
0
Эх сурвалжийг харах

Merge pull request #5633 from SoundSSGood/battle-query-fix

Fix end of battle for AI
Ivan Savenko 6 сар өмнө
parent
commit
f9c911bd25

+ 1 - 0
server/battles/BattleResultProcessor.cpp

@@ -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
 }