Hotfix for endless stats (#11888)

This commit is contained in:
Yair Morgenstern 2024-06-30 10:35:54 +03:00 committed by GitHub
parent 96db86cdc2
commit 0d45915df9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,8 +13,6 @@ import com.unciv.models.stats.Stats
import com.unciv.ui.components.extensions.toPercent
fun List<Pair<String, Stats>>.toStats(): Stats {
if (size == 1) return get(0).second
val stats = Stats()
for ((_, statsToAdd) in this)
stats.add(statsToAdd)