mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-09 20:29:50 +07:00
Fixed crashing bug caused by using GameBasics.Technologies.keys directly, and editing it
This commit is contained in:
parent
7c0f4051b3
commit
3044fb2978
@ -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 New Issue
Block a user