fix "by Unknown artist" autogen slipping through

This commit is contained in:
Glenn Maynard
2004-08-25 08:25:43 +00:00
parent 65ee2a6461
commit a6703d5561
+2 -1
View File
@@ -619,7 +619,8 @@ void SongManager::InitAutogenCourses()
/* Different artist, or we're at the end. If we have enough entries for
* the last artist, add it. Skip blanks and "Unknown artist". */
if( iCurArtistCount >= 3 && sCurArtistTranslit != "" &&
sCurArtistTranslit.CompareNoCase("Unknown artist") )
sCurArtistTranslit.CompareNoCase("Unknown artist") &&
sCurArtist.CompareNoCase("Unknown artist") )
{
pCourse = new Course;
pCourse->AutogenOniFromArtist( sCurArtist, sCurArtistTranslit, aSongs, DIFFICULTY_HARD );