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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user