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

Fix infinite loop on Fear trigger

This commit is contained in:
Ivan Savenko 2023-08-23 19:34:33 +03:00
parent a5501abd01
commit 4ab2e617d5

View File

@ -194,7 +194,8 @@ void BattleAction::setTarget(const battle::Target & target_)
bool BattleAction::isUnitAction() const bool BattleAction::isUnitAction() const
{ {
static const std::array<EActionType, 9> actions = { static const std::array<EActionType, 109> actions = {
EActionType::NO_ACTION,
EActionType::WALK, EActionType::WALK,
EActionType::WAIT, EActionType::WAIT,
EActionType::DEFEND, EActionType::DEFEND,