瀏覽代碼

Fix assertion failure on fighting against AI with tactics

Ivan Savenko 2 年之前
父節點
當前提交
1704fab3a2
共有 1 個文件被更改,包括 3 次插入0 次删除
  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