Fixed crashing bug caused by using GameBasics.Technologies.keys directly, and editing it
This commit is contained in:
parent
7c0f4051b3
commit
3044fb2978
2 changed files with 3 additions and 3 deletions
|
@ -482,12 +482,12 @@
|
|||
name:"Nanotechnology",
|
||||
row:3,
|
||||
prerequisites:["Robotics","Ecology"]
|
||||
}
|
||||
},
|
||||
{
|
||||
name:"Particle Physics",
|
||||
row:4,
|
||||
prerequisites:["Nuclear Fission"]
|
||||
}
|
||||
},
|
||||
{
|
||||
name:"Satellites",
|
||||
row:5,
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue