mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 21:35:14 -04:00
Hotfix for endless stats (#11888)
This commit is contained in:
parent
96db86cdc2
commit
0d45915df9
@ -13,8 +13,6 @@ import com.unciv.models.stats.Stats
|
|||||||
import com.unciv.ui.components.extensions.toPercent
|
import com.unciv.ui.components.extensions.toPercent
|
||||||
|
|
||||||
fun List<Pair<String, Stats>>.toStats(): Stats {
|
fun List<Pair<String, Stats>>.toStats(): Stats {
|
||||||
if (size == 1) return get(0).second
|
|
||||||
|
|
||||||
val stats = Stats()
|
val stats = Stats()
|
||||||
for ((_, statsToAdd) in this)
|
for ((_, statsToAdd) in this)
|
||||||
stats.add(statsToAdd)
|
stats.add(statsToAdd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user