clear cached trails on init

This commit is contained in:
Vecais Dumais Laacis
2007-08-07 11:38:17 +00:00
parent a19dd14707
commit 8809d2009e
+7
View File
@@ -84,6 +84,13 @@ void ScreenSelectMusic::Init()
ScreenWithMenuElements::Init();
//clear cached trails if any - cached trails points to already freed data if returning to select course after course played
SONGMAN->InvalidateCachedTrails();
FOREACH_ENUM( PlayerNumber, p )
{
GAMESTATE->m_pCurTrail[p].Set( NULL );
}
/* Cache: */
m_sSectionMusicPath = THEME->GetPathS(m_sName,"section music");
m_sSortMusicPath = THEME->GetPathS(m_sName,"sort music");