Bläddra i källkod

Fix game crash after autofight.

Vcmi makes crash when I turn on autofight in the battle and wait until I
close result battle window.
FeniksFire 8 år sedan
förälder
incheckning
d390dff54d
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      client/battle/CBattleInterface.cpp

+ 1 - 1
client/battle/CBattleInterface.cpp

@@ -1234,8 +1234,8 @@ void CBattleInterface::battleFinished(const BattleResult& br)
 		auto unlockPim = vstd::makeUnlockGuard(*CPlayerInterface::pim);
 		animsAreDisplayed.waitUntil(false);
 	}
-	displayBattleFinished();
 	setActiveStack(nullptr);
+	displayBattleFinished();
 }
 
 void CBattleInterface::displayBattleFinished()