Forráskód Böngészése

Try to fix freeze on battle opening spell

Ivan Savenko 5 hónapja
szülő
commit
5aeb06c319
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      client/battle/BattleInterface.cpp

+ 2 - 0
client/battle/BattleInterface.cpp

@@ -364,6 +364,8 @@ void BattleInterface::battleFinished(const BattleResult& br, QueryID queryID)
 
 
 void BattleInterface::spellCast(const BattleSpellCast * sc)
 void BattleInterface::spellCast(const BattleSpellCast * sc)
 {
 {
+	waitForAnimations();
+
 	// Do not deactivate anything in tactics mode
 	// Do not deactivate anything in tactics mode
 	// This is battlefield setup spells
 	// This is battlefield setup spells
 	if(!tacticsMode)
 	if(!tacticsMode)