Fix courses playing the first song again after the last song is completed

This commit is contained in:
Chris Gomez
2003-03-04 03:22:51 +00:00
parent 9840777aba
commit 1e7d474a12
+1 -1
View File
@@ -537,7 +537,7 @@ bool ScreenGameplay::IsLastSong()
if( pCourse->m_bRepeat )
return false;
else
return GAMESTATE->GetCourseSongIndex() == (int)m_apCourseSongs.size();
return GAMESTATE->GetCourseSongIndex()+1 == (int)m_apCourseSongs.size(); // GetCourseSongIndex() is 0-based but size() is not
}
break;
default: