Merge tag '3.7.5-patch1'

This commit is contained in:
Yair Morgenstern 2020-04-18 21:15:51 +03:00
commit 885f280747
2 changed files with 3 additions and 3 deletions

View file

@ -33,8 +33,8 @@ allprojects {
version = '1.0.1'
ext {
appName = "Unciv"
appCodeNumber = 411
appVersion = "3.7.5"
appCodeNumber = 412
appVersion = "3.7.5-patch1"
gdxVersion = '1.9.10'
roboVMVersion = '2.3.1'

View file

@ -260,7 +260,7 @@ class TechManager {
for (city in civInfo.cities)
for(constructionName in city.cityConstructions.constructionQueue.toList()){ // copy, since we're changing the queue
if(constructionName !in obsoleteUnits) continue
val constructionUnit = city.cityConstructions.getCurrentConstruction() as BaseUnit
val constructionUnit = city.cityConstructions.getConstruction(constructionName) as BaseUnit
city.cityConstructions.constructionQueue.replaceAll { if(it==constructionName) constructionUnit.upgradesTo!! else it }
}