use accessors

This commit is contained in:
Glenn Maynard
2002-12-17 05:29:50 +00:00
parent 417b8791e7
commit e851ce45e5
5 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -329,9 +329,9 @@ void ScreenSelectCourse::AfterCourseChange()
{
Course* pCourse = m_MusicWheel.GetSelectedCourse();
m_textNumSongs.SetText( ssprintf("%d", pCourse->m_iStages) );
m_textNumSongs.SetText( ssprintf("%d", pCourse->GetNumStages()) );
float fTotalSeconds = 0;
for( int i=0; i<pCourse->m_iStages; i++ )
for( int i=0; i<pCourse->GetNumStages(); i++ )
fTotalSeconds += pCourse->GetSong(i)->m_fMusicLengthSeconds;
m_textTime.SetText( SecondsToTime(fTotalSeconds) );