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:
Yair Morgenstern
2019-03-10 23:43:49 +02:00
parent 42ca98efd2
commit 0fcc3a6807

View File

@ -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()