use course accessors

This commit is contained in:
Glenn Maynard
2002-12-17 05:09:36 +00:00
parent d5c2331ab7
commit 5afb4c7768
4 changed files with 7 additions and 10 deletions
+1 -1
View File
@@ -332,7 +332,7 @@ void ScreenSelectCourse::AfterCourseChange()
m_textNumSongs.SetText( ssprintf("%d", pCourse->m_iStages) );
float fTotalSeconds = 0;
for( int i=0; i<pCourse->m_iStages; i++ )
fTotalSeconds += pCourse->m_apSongs[i]->m_fMusicLengthSeconds;
fTotalSeconds += pCourse->GetSong(i)->m_fMusicLengthSeconds;
m_textTime.SetText( SecondsToTime(fTotalSeconds) );
m_Banner.SetFromCourse( pCourse );