From f1e3e1b094316557d7fc9661a7fb22f8a1d825ab Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Sun, 29 May 2022 16:51:33 +0200 Subject: [PATCH] Fix NextTurnButton lateinit crash (#6979) --- core/src/com/unciv/ui/worldscreen/status/NextTurnButton.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/worldscreen/status/NextTurnButton.kt b/core/src/com/unciv/ui/worldscreen/status/NextTurnButton.kt index 8b15433dc5..c9b6e6fb44 100644 --- a/core/src/com/unciv/ui/worldscreen/status/NextTurnButton.kt +++ b/core/src/com/unciv/ui/worldscreen/status/NextTurnButton.kt @@ -9,7 +9,8 @@ import com.unciv.ui.utils.* class NextTurnButton( keyPressDispatcher: KeyPressDispatcher ) : TextButton("", BaseScreen.skin) { - private lateinit var nextTurnAction: NextTurnAction + private var nextTurnAction = NextTurnAction("", Color.BLACK) {} + init { label.setFontSize(30) labelCell.pad(10f)