From 670b8d71b56657747213044728f142ee38f577aa Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Sat, 4 Jun 2005 23:25:56 +0000 Subject: [PATCH] Allow groupless courses. We really shouldn't crash when comming upon one, Instead just make the color that of the course. --- stepmania/src/MusicWheel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/MusicWheel.cpp b/stepmania/src/MusicWheel.cpp index 61065c1cdd..cdda3f99ff 100644 --- a/stepmania/src/MusicWheel.cpp +++ b/stepmania/src/MusicWheel.cpp @@ -726,7 +726,7 @@ void MusicWheel::BuildWheelItemDatas( vector &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;