瀏覽代碼

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 年之前
父節點
當前提交
d390dff54d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()