1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fix assertion failure on fighting against AI with tactics

This commit is contained in:
Ivan Savenko 2023-04-12 00:36:22 +03:00
parent 22558551bf
commit 1704fab3a2

View File

@ -570,6 +570,9 @@ bool BattleInterface::makingTurn() const
void BattleInterface::endAction(const BattleAction* action)
{
// it is possible that tactics mode ended while opening music is still playing
waitForAnimations();
const CStack *stack = curInt->cb->battleGetStackByID(action->stackNumber);
// Activate stack from stackToActivate because this might have been temporary disabled, e.g., during spell cast