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");