1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fixes lambda

This commit is contained in:
Opuszek
2025-08-01 14:18:46 +02:00
parent f9d1d17663
commit 64e4641702

View File

@@ -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;