diff --git a/core/src/com/unciv/ui/cityscreen/CityScreenTileTable.kt b/core/src/com/unciv/ui/cityscreen/CityScreenTileTable.kt index c9bf445d5d..08ee48427f 100644 --- a/core/src/com/unciv/ui/cityscreen/CityScreenTileTable.kt +++ b/core/src/com/unciv/ui/cityscreen/CityScreenTileTable.kt @@ -46,7 +46,8 @@ class CityScreenTileTable(val city: CityInfo): Table(){ } innerTable.add(statsTable).row() - if(selectedTile.getOwner()==null && selectedTile.neighbors.any {it.getCity()==city}){ + if(selectedTile.getOwner()==null && selectedTile.neighbors.any {it.getCity()==city} + && selectedTile in city.tilesInRange){ val goldCostOfTile = city.expansion.getGoldCostOfTile(selectedTile) val buyTileButton = TextButton("Buy for [$goldCostOfTile] gold".tr(), CameraStageBaseScreen.skin)