Fixes #87 - Crash without songs.

This commit is contained in:
Florian Küpper committed 2013-12-21 23:46:01 +01:00
1 parent 43545ac47f
commit 4d72d43c0a
1 file changed
+3
+3
View File
@@ -217,6 +217,9 @@ namespace Vocaluxe.Base
public static void UpdateRandomSongList()
{
_SongsForRandom.Clear();
if (NumSongsVisible == 0)
return;
//Calc avarage sing-count
int totalCounts = 0;
foreach (CSong song in VisibleSongs)