1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix deactivation of current stack if player does not acts in time

This commit is contained in:
Ivan Savenko
2023-12-22 22:46:09 +02:00
parent ebbba0029f
commit 0a8b81b2c4

View File

@@ -691,6 +691,8 @@ void BattleStacksController::endAction(const BattleAction & action)
void BattleStacksController::startAction(const BattleAction & action) void BattleStacksController::startAction(const BattleAction & action)
{ {
// if timer run out and we did not act in time - deactivate current stack
setActiveStack(nullptr);
removeExpiredColorFilters(); removeExpiredColorFilters();
} }