fix crash on exit editor

move management of Song resources out of Song and into SongManager
This commit is contained in:
Chris Danford
2004-08-11 08:23:14 +00:00
parent 09d8807927
commit 13dd1a9bda
6 changed files with 73 additions and 83 deletions
+1 -5
View File
@@ -1831,11 +1831,7 @@ void RevertChanges( void* papSongsQueue )
vector<Song*>& apSongsQueue = *(vector<Song*>*)papSongsQueue;
FOREACH( Song*, apSongsQueue, pSong )
{
(*pSong)->RevertFromDisk();
// We need to regen any Courses that have any of the songs we just reloaded.
// Regen all Courses for now.
SONGMAN->Invalidate( *pSong );
SONGMAN->RevertFromDisk( *pSong );
}
}