autolabor: Fix compile on Windows.

VC10 wants an explicit return type for lambdas.
develop
Patrick Dawson 2014-11-28 00:55:26 +01:00
parent 794e1ee6f0
commit a6ae6d4c28
1 changed files with 1 additions and 1 deletions

@ -840,7 +840,7 @@ static void assign_labor(unit_labor::unit_labor labor,
if (pool < 200 && candidates.size() > 1 && pool < candidates.size())
{
// Sort in descending order
std::sort(candidates.begin(), candidates.end(), [&](const int lhs, const int rhs) {
std::sort(candidates.begin(), candidates.end(), [&](const int lhs, const int rhs) -> bool {
if (dwarf_skill[lhs] == dwarf_skill[rhs])
return dwarf_skillxp[lhs] > dwarf_skillxp[rhs];
else