fixed freed pointer use if returning to ScreenSelectMusic with course of random songs selected

This commit is contained in:
Vecais Dumais Laacis
2007-08-10 11:13:07 +00:00
parent c7ccecfae1
commit ebcc944076
+1 -1
View File
@@ -1014,8 +1014,8 @@ void ScreenSelectMusic::AfterStepsOrTrailChange( const vector<PlayerNumber> &vpn
Course* pCourse = GAMESTATE->m_pCurCourse;
Trail* pTrail = m_vpTrails.empty()? NULL: m_vpTrails[m_iSelection[pn]];
GAMESTATE->m_pCurSteps[pn].Set( NULL );
GAMESTATE->m_pCurTrail[pn].Set( pTrail );
GAMESTATE->m_pCurSteps[pn].Set( NULL );
int iScore = 0;
if( pTrail )