Fix crash if there are no songs in highscore

This commit is contained in:
Flamefire committed 2014-03-11 22:54:24 +01:00
1 parent 76f491b347
commit 424cb826ed
1 file changed
+5
+5
View File
@@ -278,10 +278,15 @@ namespace Vocaluxe.Screens
}
private void _ChangePos(int num)
{
if (_Scores[_Round].Count == 0)
_Pos = 0;
else
{
_Pos += num;
_Pos = _Pos.Clamp(0, _Scores[_Round].Count - 1);
}
}
private void _ChangeRound(int num)
{