mirror of
https://github.com/yairm210/Unciv.git
synced 2025-08-03 00:29:18 +07:00
Fix : Avoid addGreatPerson exception.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user