mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-31 07:09:26 +07:00
4.5.0-patch3
Fixed 'unitsToRemove' error
This commit is contained in:
@ -162,7 +162,7 @@ class Ruleset {
|
||||
cityStateTypes.putAll(ruleset.cityStateTypes)
|
||||
ruleset.modOptions.unitsToRemove
|
||||
.flatMap { unitToRemove ->
|
||||
units.filter { it.value.matchesFilter(unitToRemove) }.keys
|
||||
units.filter { it.apply { value.ruleset=this@Ruleset }.value.matchesFilter(unitToRemove) }.keys
|
||||
}.toSet().forEach {
|
||||
units.remove(it)
|
||||
}
|
||||
|
Reference in New Issue
Block a user