From ef12559b280b06c3ffd866d5eb7378b10732ce65 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Thu, 27 Dec 2012 17:55:24 +0100 Subject: [PATCH] fixed crash in bg music if there are no songs --- Vocaluxe/Base/CBackgroundMusic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vocaluxe/Base/CBackgroundMusic.cs b/Vocaluxe/Base/CBackgroundMusic.cs index 258e811f..848fa6bd 100644 --- a/Vocaluxe/Base/CBackgroundMusic.cs +++ b/Vocaluxe/Base/CBackgroundMusic.cs @@ -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)