Fixed crashing bug caused by using GameBasics.Technologies.keys directly, and editing it

This commit is contained in:
Yair Morgenstern
2019-01-28 20:45:28 +02:00
parent 7c0f4051b3
commit 3044fb2978
2 changed files with 3 additions and 3 deletions

View File

@ -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)
}