mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
BattleAI: fix freeze
This commit is contained in:
parent
2fef0e8d40
commit
4b807e01f1
@ -30,7 +30,7 @@ void DamageCache::buildDamageCache(std::shared_ptr<HypotheticBattle> hb, int sid
|
|||||||
{
|
{
|
||||||
auto stacks = hb->battleGetUnitsIf([=](const battle::Unit * u) -> bool
|
auto stacks = hb->battleGetUnitsIf([=](const battle::Unit * u) -> bool
|
||||||
{
|
{
|
||||||
return true;
|
return u->isValidTarget();
|
||||||
});
|
});
|
||||||
|
|
||||||
std::vector<const battle::Unit *> ourUnits, enemyUnits;
|
std::vector<const battle::Unit *> ourUnits, enemyUnits;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user