From e55fc3fdc7df69918ca38f805d5052ef5bbe6222 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 20 Apr 2003 20:38:17 +0000 Subject: [PATCH] fix course difficulty crash --- stepmania/src/Course.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 274f7f6328..9d1ef7a177 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -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;