mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-09 10:29:02 +07:00
Resolved #9637 - Concurrent modification fix for liberated city with multiple units in it
This commit is contained in:
parent
b7e4ca358c
commit
ee668710e2
@ -225,7 +225,7 @@ class CityInfoConquestFunctions(val city: City){
|
||||
cityStats.update()
|
||||
|
||||
// Move units out of the city when liberated
|
||||
for (unit in getCenterTile().getUnits())
|
||||
for (unit in getCenterTile().getUnits().toList())
|
||||
unit.movement.teleportToClosestMoveableTile()
|
||||
for (unit in getTiles().flatMap { it.getUnits() }.toList())
|
||||
if (!unit.movement.canPassThrough(unit.currentTile))
|
||||
|
Loading…
Reference in New Issue
Block a user