mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04: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()
|
cityStats.update()
|
||||||
|
|
||||||
// Move units out of the city when liberated
|
// Move units out of the city when liberated
|
||||||
for (unit in getCenterTile().getUnits())
|
for (unit in getCenterTile().getUnits().toList())
|
||||||
unit.movement.teleportToClosestMoveableTile()
|
unit.movement.teleportToClosestMoveableTile()
|
||||||
for (unit in getTiles().flatMap { it.getUnits() }.toList())
|
for (unit in getTiles().flatMap { it.getUnits() }.toList())
|
||||||
if (!unit.movement.canPassThrough(unit.currentTile))
|
if (!unit.movement.canPassThrough(unit.currentTile))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user