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:
parent
48702a26a4
commit
d390dff54d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user