Explorar o código

Fix assertion failure on fighting against AI with tactics

Ivan Savenko %!s(int64=2) %!d(string=hai) anos
pai
achega
1704fab3a2
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      client/battle/BattleInterface.cpp

+ 3 - 0
client/battle/BattleInterface.cpp

@@ -570,6 +570,9 @@ bool BattleInterface::makingTurn() const
 
 void BattleInterface::endAction(const BattleAction* action)
 {
+	// it is possible that tactics mode ended while opening music is still playing
+	waitForAnimations();
+
 	const CStack *stack = curInt->cb->battleGetStackByID(action->stackNumber);
 
 	// Activate stack from stackToActivate because this might have been temporary disabled, e.g., during spell cast