Fix : Avoid addGreatPerson exception.

This commit is contained in:
Duan Tao 2018-12-27 23:09:54 +08:00
parent 2904ed04eb
commit 05657ea131

View file

@ -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)