1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix game crash after autofight.

Vcmi makes crash when I turn on autofight in the battle and wait until I
close result battle window.
This commit is contained in:
FeniksFire 2017-05-13 09:54:03 +02:00
parent 48702a26a4
commit d390dff54d

View File

@ -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()