mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-02 12:24:15 +07:00
Fixes a problem with free buildings provided in other cities not being free (#5470)
This commit is contained in:
parent
36711f70ad
commit
9abc3ddb6e
@ -96,7 +96,7 @@ class CivConstructions {
|
||||
fun getFreeBuildings(cityId: String): HashSet<String> {
|
||||
val toReturn = freeBuildings[cityId] ?: hashSetOf()
|
||||
for (city in civInfo.cities) {
|
||||
toReturn.addAll(city.cityConstructions.freeBuildingsProvidedFromThisCity[city.id] ?: hashSetOf())
|
||||
toReturn.addAll(city.cityConstructions.freeBuildingsProvidedFromThisCity[cityId] ?: hashSetOf())
|
||||
}
|
||||
return toReturn
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user