From 87c3d18ac752290a76374c5cc6043c4ede2bba22 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 28 Nov 2018 18:25:09 +0200 Subject: [PATCH] City specialists now stay through game restarts --- core/src/com/unciv/logic/city/PopulationManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/city/PopulationManager.kt b/core/src/com/unciv/logic/city/PopulationManager.kt index e4b3478ef7..16f7b83c2d 100644 --- a/core/src/com/unciv/logic/city/PopulationManager.kt +++ b/core/src/com/unciv/logic/city/PopulationManager.kt @@ -14,11 +14,11 @@ class PopulationManager { var foodStored = 0 val specialists = Stats() - //var buildingsSpecialists = HashMap() //region pure functions fun clone(): PopulationManager { val toReturn = PopulationManager() + toReturn.specialists.add(specialists) toReturn.population=population toReturn.foodStored=foodStored return toReturn