Merge pull request #650 from ninjatao/fix_conquer

Fix unassigned population when capturing city.
This commit is contained in:
Yair Morgenstern 2019-04-15 08:21:00 +03:00 committed by GitHub
commit bafd7b2a21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,7 +188,8 @@ class Battle(val gameInfo:GameInfo) {
city.resistanceCounter = city.population.population
city.workedTiles = hashSetOf() //reassign 1st working tile
city.population.specialists.clear()
city.population.autoAssignPopulation()
for (i in 0..city.population.population)
city.population.autoAssignPopulation()
city.cityStats.update()
}