mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-28 13:48:49 +07:00
Fixed crashing bug caused by using GameBasics.Technologies.keys directly, and editing it
This commit is contained in:
@ -91,7 +91,7 @@ class GameInfo {
|
||||
tile = viableTiles.getRandom()
|
||||
}
|
||||
|
||||
var allResearchedTechs = GameBasics.Technologies.keys
|
||||
val allResearchedTechs = GameBasics.Technologies.keys.toMutableList()
|
||||
for (civ in civilizations.filter { !it.isBarbarianCivilization() && !it.isDefeated() }) {
|
||||
allResearchedTechs.retainAll(civ.tech.techsResearched)
|
||||
}
|
||||
|
Reference in New Issue
Block a user