From e7158646b0514de3ec9ec13b5dd1fbe24dbdcbff Mon Sep 17 00:00:00 2001 From: alexban011 Date: Sat, 17 Dec 2022 18:34:19 +0200 Subject: [PATCH] fixed issue (#8148) --- .../unciv/ui/overviewscreen/GlobalPoliticsOverviewTable.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/overviewscreen/GlobalPoliticsOverviewTable.kt b/core/src/com/unciv/ui/overviewscreen/GlobalPoliticsOverviewTable.kt index 146e85962f..5ca404d9b4 100644 --- a/core/src/com/unciv/ui/overviewscreen/GlobalPoliticsOverviewTable.kt +++ b/core/src/com/unciv/ui/overviewscreen/GlobalPoliticsOverviewTable.kt @@ -127,7 +127,7 @@ class GlobalPoliticsOverviewTable ( private fun getCivInfoTable(civ: CivilizationInfo): Table { val civInfoTable = Table(skin) - val leaderName = civ.getLeaderDisplayName().removeSuffix(" of " + civ.civName) + val leaderName = civ.nation.leaderName civInfoTable.add(leaderName.toLabel(fontSize = 30)).row() civInfoTable.add(civ.civName.toLabel()).row() civInfoTable.add(civ.tech.era.name.toLabel()).row() @@ -142,7 +142,7 @@ class GlobalPoliticsOverviewTable ( it.policyBranchType != PolicyBranchType.BranchComplete && civ.policies.isAdopted(it.name) } - policiesTable.add("[${branch.name}]: ${count}".toLabel()).row() + policiesTable.add("[${branch.name}]: $count".toLabel()).row() } return policiesTable }