Przeglądaj źródła

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

Fix end of battle for AI
Ivan Savenko 6 miesięcy temu
rodzic
commit
f9c911bd25
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      server/battles/BattleResultProcessor.cpp

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