From 98475393f5e26c84df656945312d48514b6a638e Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 29 May 2021 12:58:16 +0200 Subject: [PATCH] fix --- core/src/sagittarius/view/SettingsScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/sagittarius/view/SettingsScreen.java b/core/src/sagittarius/view/SettingsScreen.java index 4a32a3e..7c74fe5 100644 --- a/core/src/sagittarius/view/SettingsScreen.java +++ b/core/src/sagittarius/view/SettingsScreen.java @@ -49,7 +49,7 @@ public class SettingsScreen extends BaseScreen { // number players field SpinnerSounded nbPlanetsField = new SpinnerSounded("Number planets:", - new SimpleFloatSpinnerModel(SagittariusGame.numberPlanets, Integer.parseInt(nbPlayersField.getTextField().getText()), 10, 1, 1)); + new SimpleFloatSpinnerModel(SagittariusGame.numberPlanets, SagittariusGame.numberPlayers, 10, 1, 1)); // dubug mode checkbox CheckBoxSounded debugModeBox = new CheckBoxSounded("debug mode");