mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
try fix build
This commit is contained in:
parent
ffdf5ad180
commit
75ed6210c6
@ -47,7 +47,7 @@ std::vector<SlotInfo> ArmyManager::getSortedSlots(const CCreatureSet * target, c
|
|||||||
for(auto pair : creToPower)
|
for(auto pair : creToPower)
|
||||||
resultingArmy.push_back(pair.second);
|
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;
|
return left.power > right.power;
|
||||||
});
|
});
|
||||||
@ -57,7 +57,7 @@ std::vector<SlotInfo> ArmyManager::getSortedSlots(const CCreatureSet * target, c
|
|||||||
|
|
||||||
std::vector<SlotInfo>::iterator ArmyManager::getWeakestCreature(std::vector<SlotInfo> & army) const
|
std::vector<SlotInfo>::iterator ArmyManager::getWeakestCreature(std::vector<SlotInfo> & 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)
|
if(left.creature->level != right.creature->level)
|
||||||
return left.creature->level < right.creature->level;
|
return left.creature->level < right.creature->level;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user