Automated units stay automated after upgrade (#10361)

This commit is contained in:
SomeTroglodyte
2023-10-29 18:00:22 +01:00
committed by GitHub
parent cf2ff124cf
commit 5dde55a34b

View File

@ -255,6 +255,8 @@ class MapUnit : IsPartOfGameInfoSerialization {
promotions.addPromotion(promotion, isFree = true)
newUnit.promotions = promotions.clone()
newUnit.automated = automated
newUnit.action = action // Needed too for Unit Overview action column
newUnit.updateUniques()
newUnit.updateVisibleTiles()