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

@ -482,12 +482,12 @@
name:"Nanotechnology",
row:3,
prerequisites:["Robotics","Ecology"]
}
},
{
name:"Particle Physics",
row:4,
prerequisites:["Nuclear Fission"]
}
},
{
name:"Satellites",
row:5,

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