Sorted list of icons for promotions (#2164)

This commit is contained in:
Jack Rainy
2020-03-16 12:55:48 +02:00
committed by GitHub
parent c7d020e32d
commit 6c5f729333

View File

@ -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