diff --git a/lib/rmg/CMapGenerator.cpp b/lib/rmg/CMapGenerator.cpp index 23f080bf2..5ea3e8b54 100644 --- a/lib/rmg/CMapGenerator.cpp +++ b/lib/rmg/CMapGenerator.cpp @@ -498,7 +498,7 @@ void CMapGenerator::createConnections() middleTile.x /= tilesCount; middleTile.y /= tilesCount; middleTile.z /= tilesCount; //TODO: implement division operator for int3? - boost::sort(middleTiles, [middleTile](int3 &lhs, int3 &rhs) -> bool + boost::sort(middleTiles, [middleTile](const int3 &lhs, const int3 &rhs) -> bool { //choose tiles with both corrdinates in the middle return lhs.mandist2d(middleTile) < rhs.mandist2d(middleTile); @@ -556,7 +556,6 @@ void CMapGenerator::createConnections() auto sgt = VLC->objtypeh->getHandlerFor(Obj::SUBTERRANEAN_GATE, 0)->getTemplates().front(); - bool stop = false; for (auto tile : commonTiles) { tile.z = posA.z;