fixed crash when saving Course records

fixed incorrect handing of "accelerate" token in Actor::Fade
This commit is contained in:
Chris Danford
2003-02-24 00:47:13 +00:00
parent aac5e21f9b
commit bed2c0a74b
3 changed files with 12 additions and 12 deletions
+6 -6
View File
@@ -495,9 +495,9 @@ void SongManager::SaveMachineScoresToDisk()
{
fprintf(fp,"%d\n",COURSE_SCORES_VERSION);
for( unsigned c=0; c<m_pCourses.size(); c++ ) // foreach song
for( unsigned i=0; i<m_pCourses.size(); i++ ) // foreach song
{
Course* pCourse = m_pCourses[c];
Course* pCourse = m_pCourses[i];
ASSERT(pCourse);
if( pCourse->m_bIsAutoGen )
@@ -505,11 +505,11 @@ void SongManager::SaveMachineScoresToDisk()
else
fprintf(fp, "%s\n", pCourse->m_sPath.c_str());
for( int i=0; i<NUM_NOTES_TYPES; i++ )
for( int nt=0; nt<NUM_NOTES_TYPES; nt++ )
fprintf(fp, "%d %d %f\n",
pCourse->m_MemCardScores[c][i].iNumTimesPlayed,
pCourse->m_MemCardScores[c][i].iDancePoints,
pCourse->m_MemCardScores[c][i].fSurviveTime);
pCourse->m_MemCardScores[c][nt].iNumTimesPlayed,
pCourse->m_MemCardScores[c][nt].iDancePoints,
pCourse->m_MemCardScores[c][nt].fSurviveTime);
}
fclose(fp);