Allow groupless courses. We really shouldn't crash when comming upon one, Instead just make the color that of the course.

This commit is contained in:
Charles Lohr
2005-06-04 23:25:56 +00:00
parent 3974fa9a21
commit 670b8d71b5
+1 -1
View File
@@ -726,7 +726,7 @@ void MusicWheel::BuildWheelItemDatas( vector<WheelItemData> &arrayWheelItemDatas
sLastSection = sThisSection;
}
RageColor c = pCourse->GetColor() * SONGMAN->GetCourseColor(pCourse);
RageColor c = ( pCourse->m_sGroupName.size() == 0 ) ? pCourse->GetColor() : pCourse->GetColor() * SONGMAN->GetCourseColor(pCourse);
arrayWheelItemDatas.push_back( WheelItemData(TYPE_COURSE, NULL, sThisSection, pCourse, c) );
}
break;