Prevent cryptic error when failing with a course that doesn't have a group name.

This commit is contained in:
Charles Lohr
2005-06-04 23:20:47 +00:00
parent 23ed01fffe
commit 3974fa9a21
+2 -3
View File
@@ -399,9 +399,8 @@ RageColor SongManager::GetCourseGroupColor( const CString &sCourseGroupName )
if( m_sCourseGroupNames[i] == sCourseGroupName )
break;
}
ASSERT_M( i != m_sCourseGroupNames.size(), sCourseGroupName ); // this is not a valid group
return COURSE_GROUP_COLOR.GetValue( i%NUM_COURSE_GROUP_COLORS );
ASSERT_M( i != m_sCourseGroupNames.size(), "Course: '" + sCourseGroupName + "' is not a valid group." ); // this is not a valid group
return COURSE_GROUP_COLOR.GetValue( i%NUM_COURSE_GROUP_COLORS.GetValue() );
}
RageColor SongManager::GetCourseColor( const Course* pCourse )