diff --git a/src/Course.cpp b/src/Course.cpp index 3231dbed94..73528353e0 100644 --- a/src/Course.cpp +++ b/src/Course.cpp @@ -823,9 +823,24 @@ bool Course::GetTotalSeconds( StepsType st, float& fSecondsOut ) const if( !AllSongsAreFixed() ) return false; - Trail* pTrail = GetTrail( st, Difficulty_Medium ); + Trail* trail = GetTrail( st, Difficulty_Medium ); + if(!trail) + { + for(int cd= 0; cd < NUM_CourseDifficulty; ++cd) + { + trail= GetTrail(st, (CourseDifficulty)cd); + if(trail) + { + break; + } + } + if(!trail) + { + return false; + } + } - fSecondsOut = pTrail->GetLengthSeconds(); + fSecondsOut = trail->GetLengthSeconds(); return true; }