From a6ae6d4c28240f8af8594124bf906b7d56f14c9b Mon Sep 17 00:00:00 2001 From: Patrick Dawson Date: Fri, 28 Nov 2014 00:55:26 +0100 Subject: [PATCH] autolabor: Fix compile on Windows. VC10 wants an explicit return type for lambdas. --- plugins/autolabor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/autolabor.cpp b/plugins/autolabor.cpp index 9b7f5835d..28ac0d433 100644 --- a/plugins/autolabor.cpp +++ b/plugins/autolabor.cpp @@ -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