mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 04:43:05 -04:00
Fix [stats] unique adding multiple times (#10352)
* Fix [stats] unique adding multiple times * Used the wrong function
This commit is contained in:
parent
8d0853f0a9
commit
bb954295ff
@ -100,7 +100,7 @@ class TileStatFunctions(val tile: Tile) {
|
||||
for (terrain in tile.allTerrains) {
|
||||
for (unique in terrain.getMatchingUniques(UniqueType.Stats, stateForConditionals)) {
|
||||
if (stats == null) {
|
||||
stats = unique.stats
|
||||
stats = unique.stats.clone()
|
||||
}
|
||||
else stats.add(unique.stats)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user