fix SongManager::Cleanup() not flushing course caches

flush StepsID cache in SongManager::Cleanup()
This commit is contained in:
Glenn Maynard
2004-06-11 21:25:00 +00:00
parent f0cc560c9f
commit 0a455d1a64
+6 -3
View File
@@ -663,9 +663,12 @@ void SongManager::Cleanup()
} }
// FIXME // FIXME
// /* Erase cached course info. */ /* Why was this commented out? If this isn't done, we'll have stale Steps* in
// for( unsigned i=0; i < m_pCourses.size(); i++ ) * course caches, and we'll crash later. */
// m_pCourses[i]->ClearCache(); /* Erase cached course info. */
for( unsigned i=0; i < m_pCourses.size(); i++ )
m_pCourses[i]->RegenTrails();
StepsID::FlushCache();
} }
void SongManager::RegenRandomTrailEntries() void SongManager::RegenRandomTrailEntries()