mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Resolved crash due to evaluating distance to city state when we have no cities
This commit is contained in:
parent
fcc335b78a
commit
d0dbb27e00
@ -169,7 +169,7 @@ object NextTurnAutomation {
|
||||
|
||||
private fun valueCityStateAlliance(civInfo: CivilizationInfo, cityState: CivilizationInfo): Int {
|
||||
var value = 0
|
||||
if (!cityState.isAlive() || cityState.cities.isEmpty())
|
||||
if (!cityState.isAlive() || cityState.cities.isEmpty() || civInfo.cities.isEmpty())
|
||||
return value
|
||||
|
||||
if (civInfo.victoryType() == VictoryType.Cultural && cityState.canGiveStat(Stat.Culture)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user