mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04: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)
|
val diplomaticMarriageButton = getDiplomaticMarriageButton(otherCiv)
|
||||||
if (diplomaticMarriageButton != null) diplomacyTable.add(diplomaticMarriageButton).row()
|
if (diplomaticMarriageButton != null) diplomacyTable.add(diplomaticMarriageButton).row()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user