Pārlūkot izejas kodu

Try to fix battle startup if player has waiting dialogs

Ivan Savenko 1 gadu atpakaļ
vecāks
revīzija
b94a61c255
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      client/CPlayerInterface.cpp

+ 1 - 1
client/CPlayerInterface.cpp

@@ -621,7 +621,7 @@ void CPlayerInterface::battleStartBefore(const BattleID & battleID, const CCreat
 	movementController->onBattleStarted();
 	movementController->onBattleStarted();
 
 
 	//Don't wait for dialogs when we are non-active hot-seat player
 	//Don't wait for dialogs when we are non-active hot-seat player
-	if (LOCPLINT == this)
+	if (makingTurn)
 		waitForAllDialogs();
 		waitForAllDialogs();
 }
 }