From 9cf47e9f4894b84d854e91694b16ad33b70b677d Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sun, 1 Jan 2023 14:59:58 +0200 Subject: [PATCH] Display protecting civs for city-states --- core/src/com/unciv/ui/trade/DiplomacyScreen.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/com/unciv/ui/trade/DiplomacyScreen.kt b/core/src/com/unciv/ui/trade/DiplomacyScreen.kt index 32459eeb7a..da933589b6 100644 --- a/core/src/com/unciv/ui/trade/DiplomacyScreen.kt +++ b/core/src/com/unciv/ui/trade/DiplomacyScreen.kt @@ -228,12 +228,12 @@ class DiplomacyScreen( val protectors = otherCiv.getProtectorCivs() if (protectors.isNotEmpty()) { - val newProtectors = listOf() + val newProtectors = arrayListOf() for (protector in protectors) { if (!viewingCiv.knows(protector) && protector.civName != viewingCiv.civName) - newProtectors.plus("Unknown civilization".tr()) + newProtectors.add("Unknown civilization".tr()) else - newProtectors.plus(protector.civName.tr()) + newProtectors.add(protector.civName.tr()) } val protectorString = "{Protected by}: " + newProtectors.joinToString(", ") diplomacyTable.add(protectorString.toLabel()).row()