fix crash on exiting editor

clean up invalidation of Song and Courses
This commit is contained in:
Chris Danford
2004-08-12 04:49:15 +00:00
parent cbe80105fb
commit 873c148f0e
7 changed files with 35 additions and 22 deletions
+4
View File
@@ -258,6 +258,9 @@ void Course::LoadFromCRSFile( CString sPath )
void Course::RevertFromDisk()
{
// trying to catch invalid an Course
ASSERT( !m_sPath.empty() );
LoadFromCRSFile( m_sPath );
}
@@ -268,6 +271,7 @@ void Course::Init()
m_bRandomize = false;
m_iLives = -1;
m_bSortByMeter = false;
m_entries.clear();
FOREACH_Difficulty(dc)
m_iCustomMeter[dc] = -1;
m_entries.clear();