diff --git a/android/build.gradle b/android/build.gradle index d5cf48bd87..c992c215ab 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -21,8 +21,8 @@ android { applicationId "com.unciv.app" minSdkVersion 14 targetSdkVersion 28 - versionCode 276 - versionName "2.18.5" + versionCode 278 + versionName "2.18.6-patch1" } // Had to add this crap for Travis to build, it wanted to sign the app diff --git a/core/src/com/unciv/models/stats/Stats.kt b/core/src/com/unciv/models/stats/Stats.kt index 6d76da3c0c..dcd8a41261 100644 --- a/core/src/com/unciv/models/stats/Stats.kt +++ b/core/src/com/unciv/models/stats/Stats.kt @@ -100,6 +100,8 @@ open class Stats() { class StatMap:LinkedHashMap(){ fun add(source:String,stats:Stats){ if(!containsKey(source)) put(source,stats) - else get(source)!!.add(stats) + else get(source)!!.plus(stats) + // This CAN'T be get(source)!!.add() because the initial stats we get are sometimes from other places - + // for instance the Cities is from the currentCityStats and if we add to that we change the value in the cities themselves! } } \ No newline at end of file