fix SongManager::Cleanup() not flushing course caches
flush StepsID cache in SongManager::Cleanup()
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user