From 6c5f729333eb105afe84cd6001959dc4665f52ad Mon Sep 17 00:00:00 2001 From: Jack Rainy Date: Mon, 16 Mar 2020 12:55:48 +0200 Subject: [PATCH] Sorted list of icons for promotions (#2164) --- core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt b/core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt index c2dbfcbd61..f442270ed7 100644 --- a/core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt +++ b/core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt @@ -167,7 +167,7 @@ class UnitTable(val worldScreen: WorldScreen) : Table(){ if(selectedUnit!=null) { unitIconHolder.add(UnitGroup(selectedUnit!!,30f)).pad(5f) - for(promotion in selectedUnit!!.promotions.promotions) + for(promotion in selectedUnit!!.promotions.promotions.sorted()) promotionsTable.add(ImageGetter.getPromotionIcon(promotion)) // Since Clear also clears the listeners, we need to re-add it every time