diff --git a/core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt b/core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt index 39eee74b7715f..77ea3cad78d3f 100644 --- a/core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt +++ b/core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt @@ -652,10 +652,9 @@ object NextTurnAutomation { for (civ1city in civ1.cities) for (civ2city in civ2.cities){ - val currentDistance = CityDistance(civ1city, civ2city, - civ1city.getCenterTile().aerialDistanceTo(civ2city.getCenterTile())) - if (minDistance == null || currentDistance.aerialDistance < minDistance.aerialDistance) - minDistance = currentDistance + val currentDistance = civ1city.getCenterTile().aerialDistanceTo(civ2city.getCenterTile()) + if (minDistance == null || currentDistance < minDistance.aerialDistance) + minDistance = CityDistance(civ1city, civ2city, currentDistance) } return minDistance