diff --git a/src/main/java/de/fanta/challenges/scoreboard/ScoreManager.java b/src/main/java/de/fanta/challenges/scoreboard/ScoreManager.java index ebd15af..2e3d2d7 100644 --- a/src/main/java/de/fanta/challenges/scoreboard/ScoreManager.java +++ b/src/main/java/de/fanta/challenges/scoreboard/ScoreManager.java @@ -288,9 +288,9 @@ HashMap tournamentScores = new HashMap<>(); int length = scoreDataList.size(); if (length > 0) { - int lastPosition = scoreDataList.get(length - 1).getPostition() - 1; - int threePoints = Math.round((lastPosition - 3) / 3.0f + 3); - int twoPoints = Math.round((lastPosition - 3) / 3.0f * 2 + 3); + int lastPostition = scoreDataList.get(length - 1).getPostition() - 1; + int threePoints = Math.round((lastPostition - 3) / 3.0f + 3); + int twoPoints = Math.round((lastPostition - 3) / 3.0f * 2 + 3); for (int i = 0; i < length; i++) { ScoreData scoreData = scoreDataList.get(i); Scorable scorable = scoreData.getScorable();