From 0fcc3a680755d147d054635b6101d97ae20ba823 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sun, 10 Mar 2019 23:43:49 +0200 Subject: [PATCH] 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 --- core/src/com/unciv/ui/NewGameScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/NewGameScreen.kt b/core/src/com/unciv/ui/NewGameScreen.kt index 0b2c99df88..b278a6a54a 100644 --- a/core/src/com/unciv/ui/NewGameScreen.kt +++ b/core/src/com/unciv/ui/NewGameScreen.kt @@ -131,7 +131,7 @@ class NewGameScreen: PickerScreen(){ newGameOptionsTable.add("{Number of enemies}:".tr()) val enemiesSelectBox = SelectBox(skin) val enemiesArray = Array() - (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()