소스 검색

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);
 		auto unlockPim = vstd::makeUnlockGuard(*CPlayerInterface::pim);
 		animsAreDisplayed.waitUntil(false);
 		animsAreDisplayed.waitUntil(false);
 	}
 	}
-	displayBattleFinished();
 	setActiveStack(nullptr);
 	setActiveStack(nullptr);
+	displayBattleFinished();
 }
 }
 
 
 void CBattleInterface::displayBattleFinished()
 void CBattleInterface::displayBattleFinished()