mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-05 07:49:17 +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
|
// 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) {
|
for (key in keys) {
|
||||||
if (key in keySelectMap) {
|
if (key in keySelectMap) {
|
||||||
keySelectMap[key]!! += currentSelectInfo
|
keySelectMap[key]!! += currentSelectInfo
|
||||||
|
Reference in New Issue
Block a user