mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 15:30:43 -04: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",
|
name:"Nanotechnology",
|
||||||
row:3,
|
row:3,
|
||||||
prerequisites:["Robotics","Ecology"]
|
prerequisites:["Robotics","Ecology"]
|
||||||
}
|
},
|
||||||
{
|
{
|
||||||
name:"Particle Physics",
|
name:"Particle Physics",
|
||||||
row:4,
|
row:4,
|
||||||
prerequisites:["Nuclear Fission"]
|
prerequisites:["Nuclear Fission"]
|
||||||
}
|
},
|
||||||
{
|
{
|
||||||
name:"Satellites",
|
name:"Satellites",
|
||||||
row:5,
|
row:5,
|
||||||
|
@ -91,7 +91,7 @@ class GameInfo {
|
|||||||
tile = viableTiles.getRandom()
|
tile = viableTiles.getRandom()
|
||||||
}
|
}
|
||||||
|
|
||||||
var allResearchedTechs = GameBasics.Technologies.keys
|
val allResearchedTechs = GameBasics.Technologies.keys.toMutableList()
|
||||||
for (civ in civilizations.filter { !it.isBarbarianCivilization() && !it.isDefeated() }) {
|
for (civ in civilizations.filter { !it.isBarbarianCivilization() && !it.isDefeated() }) {
|
||||||
allResearchedTechs.retainAll(civ.tech.techsResearched)
|
allResearchedTechs.retainAll(civ.tech.techsResearched)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user