Skip to content

Commit

Permalink
perf: Don't update civ stats when calculating production for construc…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
yairm210 committed Jul 3, 2024
1 parent d9deb12 commit 8ea510d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/com/unciv/logic/city/CityConstructions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class CityConstructions : IsPartOfGameInfoSerialization {
val cityStats = CityStats(city)
cityStats.statsFromTiles = city.cityStats.statsFromTiles // take as-is
val construction = city.cityConstructions.getConstruction(constructionName)
cityStats.update(construction, false)
cityStats.update(construction, false, false)
cityStatsForConstruction = cityStats.currentCityStats
}

Expand Down

0 comments on commit 8ea510d

Please sign in to comment.