From 75ed6210c6052effc8fd5c44017f293f91005ac8 Mon Sep 17 00:00:00 2001 From: Andrii Danylchenko Date: Sat, 23 Mar 2019 14:11:57 +0200 Subject: [PATCH] try fix build --- AI/VCAI/ArmyManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AI/VCAI/ArmyManager.cpp b/AI/VCAI/ArmyManager.cpp index a07320c58..f206d71d9 100644 --- a/AI/VCAI/ArmyManager.cpp +++ b/AI/VCAI/ArmyManager.cpp @@ -47,7 +47,7 @@ std::vector ArmyManager::getSortedSlots(const CCreatureSet * target, c for(auto pair : creToPower) resultingArmy.push_back(pair.second); - boost::sort(resultingArmy, [](SlotInfo & left, SlotInfo & right) -> bool + boost::sort(resultingArmy, [](const SlotInfo & left, const SlotInfo & right) -> bool { return left.power > right.power; }); @@ -57,7 +57,7 @@ std::vector ArmyManager::getSortedSlots(const CCreatureSet * target, c std::vector::iterator ArmyManager::getWeakestCreature(std::vector & army) const { - auto weakest = boost::min_element(army, [](SlotInfo & left, SlotInfo & right) -> bool + auto weakest = boost::min_element(army, [](const SlotInfo & left, const SlotInfo & right) -> bool { if(left.creature->level != right.creature->level) return left.creature->level < right.creature->level;