1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-28 23:06:24 +02:00

Fix unused variable

This commit is contained in:
Tomasz Zieliński 2023-06-17 19:31:16 +02:00
parent 9cee751026
commit acc141d626

View File

@ -390,7 +390,7 @@ void ConnectionsPlacer::createBorder()
if (connection.getConnectionType() == EConnectionType::EConnectionType::WIDE) if (connection.getConnectionType() == EConnectionType::EConnectionType::WIDE)
{ {
auto sharedBorder = borderArea.getSubarea([this, otherZone, &connection, &borderOutsideArea](const int3 & t) auto sharedBorder = borderArea.getSubarea([this, otherZone, &borderOutsideArea](const int3 & t)
{ {
auto tile = borderOutsideArea.nearest(t); auto tile = borderOutsideArea.nearest(t);
return map.isOnMap(tile) && map.getZones()[map.getZoneID(tile)]->getId() == otherZone; return map.isOnMap(tile) && map.getZones()[map.getZoneID(tile)]->getId() == otherZone;