mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fixes lambda
This commit is contained in:
@@ -505,7 +505,7 @@ bool BattleFlowProcessor::tryMakeAutomaticActionOfBallistaOrTowers(const CBattle
|
||||
targetsInfo.push_back(targetInfo);
|
||||
}
|
||||
|
||||
const auto & isBetterTarget = [&](const TargetInfo & candidate, const TargetInfo & current)
|
||||
const auto & isBetterTarget = [](const TargetInfo & candidate, const TargetInfo & current)
|
||||
{
|
||||
if (candidate.isParalyzed != current.isParalyzed)
|
||||
return candidate.isParalyzed < current.isParalyzed;
|
||||
|
||||
Reference in New Issue
Block a user