mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 07:17:50 +07:00
Fix vulnerability of new NationPickerPopup icon view (#9587)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user