mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Resolved crashes when centering on a city-state with no cities
This commit is contained in:
parent
23f55a959c
commit
e5d8de6b58
@ -398,7 +398,8 @@ class DiplomacyScreen(
|
||||
}
|
||||
}
|
||||
|
||||
diplomacyTable.add(getGoToOnMapButton(otherCiv)).row()
|
||||
if (otherCiv.cities.isNotEmpty() && otherCiv.getCapital() != null && otherCiv.getCapital()!!.location in viewingCiv.exploredTiles)
|
||||
diplomacyTable.add(getGoToOnMapButton(otherCiv)).row()
|
||||
|
||||
val diplomaticMarriageButton = getDiplomaticMarriageButton(otherCiv)
|
||||
if (diplomaticMarriageButton != null) diplomacyTable.add(diplomaticMarriageButton).row()
|
||||
|
Loading…
Reference in New Issue
Block a user