diff --git a/core/src/com/unciv/ui/screens/newgamescreen/NationPickerPopup.kt b/core/src/com/unciv/ui/screens/newgamescreen/NationPickerPopup.kt index d6ad42b47b..fd36bb7aa9 100644 --- a/core/src/com/unciv/ui/screens/newgamescreen/NationPickerPopup.kt +++ b/core/src/com/unciv/ui/screens/newgamescreen/NationPickerPopup.kt @@ -230,7 +230,7 @@ internal class NationPickerPopup( } // Keyboard: Fist letter of each "word" - "The Ottomans" get T _and_ O - val keys = element.translatedName.split(' ').map { it.first() }.toSet() + val keys = element.translatedName.split(' ').mapNotNull { it.firstOrNull() }.toSet() for (key in keys) { if (key in keySelectMap) { keySelectMap[key]!! += currentSelectInfo