fixed crash in bg music if there are no songs

This commit is contained in:
Alexander Eckart committed 2012-12-27 17:55:24 +01:00
1 parent 4058d16fc6
commit ef12559b28
1 file changed
+1 -1
+1 -1
View File
@@ -294,7 +294,7 @@ namespace Vocaluxe.Base
public static void Previous()
{
if (_PreviousFileNames.Count > 0 || _PreviousMusicIndex >= 0)
if (_PreviousFileNames.Count > 0 && _PreviousMusicIndex >= 0)
{
float pos = CSound.GetPosition(_CurrentMusicStream);
if (CSound.GetPosition(_CurrentMusicStream) >= 1.5f)