From f016012e3995f04d6d4ea5c1ed6cc12e2df148d2 Mon Sep 17 00:00:00 2001 From: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Date: Sun, 5 Sep 2021 13:58:02 +0200 Subject: [PATCH] Fixed a bug where no icon would display in city religion UI for pantheons (#5094) --- core/src/com/unciv/ui/cityscreen/CityStatsTable.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/cityscreen/CityStatsTable.kt b/core/src/com/unciv/ui/cityscreen/CityStatsTable.kt index 0b7a78e442..f6d38cbfd7 100644 --- a/core/src/com/unciv/ui/cityscreen/CityStatsTable.kt +++ b/core/src/com/unciv/ui/cityscreen/CityStatsTable.kt @@ -87,7 +87,7 @@ class CityStatsTable(val cityScreen: CityScreen): Table() { ?: "None" val icon = if (label == "None") "Religion" - else cityInfo.religion.getMajorityReligion()!!.name + else cityInfo.religion.getMajorityReligion()!!.getIconName() val expanderTab = ExpanderTab( title = "Majority Religion: [$label]",