Fixed wrong highscores

This commit is contained in:
2015-07-09 21:39:27 +02:00
parent 9d50e6d9f9
commit 137eb5384f
+2 -2
View File
@@ -419,10 +419,10 @@ public class MenuState extends GameState {
boolean highscoresFound = true;
int HIGHSCORES_TO_DISPLAY = 7;
List<Highscore> highscores = sql.getHighscoresToday(selectedToSong(selected), sh.getCurrentSong().getSongs().get(difSelect));
List<Highscore> highscores = sql.getHighscoresToday(selectedToSong(selected), sh.getCurrentSong().getSongs().get((sh.getCurrentSong().getSongs().size() - 1) - difSelect));
if(highscores.isEmpty())
{
highscores = sql.getHighscores(selectedToSong(selected), sh.getCurrentSong().getSongs().get(difSelect));
highscores = sql.getHighscores(selectedToSong(selected), sh.getCurrentSong().getSongs().get((sh.getCurrentSong().getSongs().size() - 1) - difSelect));
if(highscores.isEmpty())
{
highscoresFound = false;