mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 05:09:25 +07:00
Fixed bug where setting the max. amount of AI players meant that there was no human player, so people got a fully-fogged out map
This commit is contained in:
@ -131,7 +131,7 @@ class NewGameScreen: PickerScreen(){
|
||||
newGameOptionsTable.add("{Number of enemies}:".tr())
|
||||
val enemiesSelectBox = SelectBox<Int>(skin)
|
||||
val enemiesArray = Array<Int>()
|
||||
(0..GameBasics.Nations.size).forEach { enemiesArray.add(it) }
|
||||
(0..GameBasics.Nations.size-1).forEach { enemiesArray.add(it) }
|
||||
enemiesSelectBox.items = enemiesArray
|
||||
enemiesSelectBox.selected = newGameParameters.numberOfEnemies
|
||||
newGameOptionsTable.add(enemiesSelectBox).pad(10f).row()
|
||||
|
Reference in New Issue
Block a user