From aca089fa4abfd3a22f2b287848a7194bda8b5019 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 26 Dec 2018 20:08:57 +0200 Subject: [PATCH] Solved notification concurrency exception --- core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt b/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt index 3bbf714da1..c3b80615f4 100644 --- a/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt +++ b/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt @@ -18,7 +18,7 @@ class NotificationsScroll(internal val worldScreen: WorldScreen) : ScrollPane(nu internal fun update(notifications: MutableList) { notificationsTable.clearChildren() - for (notification in notifications) { + for (notification in notifications.toList()) { // tolist to avoid concurrecy problems val label = Label(notification.text.tr(), CameraStageBaseScreen.skin).setFontColor(Color.BLACK) .setFontSize(14) val minitable = Table()