fix course difficulty crash

This commit is contained in:
Glenn Maynard
2003-04-20 20:38:17 +00:00
parent be9216fad5
commit e55fc3fdc7
+2 -1
View File
@@ -561,7 +561,8 @@ bool Course::IsMysterySong( int stage ) const
Difficulty Course::GetDifficulty( int stage ) const
{
Difficulty dc = m_entries[stage].difficulty;
if(GAMESTATE->m_bDifficultCourses)
if(GAMESTATE->m_bDifficultCourses && dc < DIFFICULTY_CHALLENGE)
dc = Difficulty(dc + 1);
return dc;