Browse Source

Fix assertion failure on fighting against AI with tactics

Ivan Savenko 2 years ago
parent
commit
1704fab3a2
1 changed files with 3 additions and 0 deletions
  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