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:
committed by
Andrii Danylchenko
parent
3e9bf9b662
commit
4f51d3c929
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user