mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Fix : Avoid addGreatPerson exception.
This commit is contained in:
parent
2904ed04eb
commit
05657ea131
@ -351,7 +351,7 @@ class CivilizationInfo {
|
||||
}
|
||||
|
||||
//if no city available, addGreatPerson will throw exception
|
||||
if (!cities.isNotEmpty()) {
|
||||
if (cities.isNotEmpty()) {
|
||||
val greatPerson = greatPeople.getNewGreatPerson()
|
||||
if (greatPerson != null) {
|
||||
addGreatPerson(greatPerson)
|
||||
|
Loading…
x
Reference in New Issue
Block a user