Fix crash if there are no songs in highscore
This commit is contained in:
1 parent
76f491b347
commit
424cb826ed
1 file changed
+7
-2
@@ -279,8 +279,13 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
private void _ChangePos(int num)
|
private void _ChangePos(int num)
|
||||||
{
|
{
|
||||||
_Pos += num;
|
if (_Scores[_Round].Count == 0)
|
||||||
_Pos = _Pos.Clamp(0, _Scores[_Round].Count - 1);
|
_Pos = 0;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_Pos += num;
|
||||||
|
_Pos = _Pos.Clamp(0, _Scores[_Round].Count - 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void _ChangeRound(int num)
|
private void _ChangeRound(int num)
|
||||||
|
|||||||
Reference in new issue
Block a user