1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-22 09:55:17 +02:00

Nullkiller: fix android

This commit is contained in:
Andrii Danylchenko
2021-05-16 14:55:57 +03:00
committed by Andrii Danylchenko
parent 3e9bf9b662
commit 4f51d3c929
14 changed files with 35 additions and 36 deletions
@@ -44,7 +44,7 @@ const CGObjectInstance * ObjectCluster::calculateCenter() const
priority += newPriority;
}
auto closestPair = *vstd::minElementByFun(objects, [&](const std::pair<const CGObjectInstance *, ObjectInfo> & pair) -> int
auto closestPair = *vstd::minElementByFun(objects, [&](const std::pair<const CGObjectInstance *, ClusterObjectInfo> & pair) -> int
{
return pair.first->visitablePos().dist2dSQ(tile);
});