From 143d4422e85215cddd439b1f18e737c214dabd97 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 24 Apr 2019 21:03:33 +0300 Subject: [PATCH] When purchasing a building, the buildings list (on the left) is immediately updated to reflect that --- core/src/com/unciv/ui/cityscreen/ConstructionsTable.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/cityscreen/ConstructionsTable.kt b/core/src/com/unciv/ui/cityscreen/ConstructionsTable.kt index fc5f52682b..04a7361017 100644 --- a/core/src/com/unciv/ui/cityscreen/ConstructionsTable.kt +++ b/core/src/com/unciv/ui/cityscreen/ConstructionsTable.kt @@ -146,7 +146,7 @@ class ConstructionsTable(val cityScreen: CityScreen) : Table(CameraStageBaseScre cityConstructions.purchaseBuilding(construction.name) if(lastConstruction!="" && cityConstructions.getConstruction(lastConstruction).isBuildable(cityConstructions)) city.cityConstructions.currentConstruction = lastConstruction - update() + cityScreen.update() // since the list of available buildings needs to be updated too, so we can "see" that the building we bought now exists in the city }, cityScreen) } if (buildingGoldCost > city.civInfo.gold) {