fixed freed pointer use if returning to ScreenSelectMusic with course of random songs selected
This commit is contained in:
@@ -1014,8 +1014,8 @@ void ScreenSelectMusic::AfterStepsOrTrailChange( const vector<PlayerNumber> &vpn
|
|||||||
Course* pCourse = GAMESTATE->m_pCurCourse;
|
Course* pCourse = GAMESTATE->m_pCurCourse;
|
||||||
Trail* pTrail = m_vpTrails.empty()? NULL: m_vpTrails[m_iSelection[pn]];
|
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_pCurTrail[pn].Set( pTrail );
|
||||||
|
GAMESTATE->m_pCurSteps[pn].Set( NULL );
|
||||||
|
|
||||||
int iScore = 0;
|
int iScore = 0;
|
||||||
if( pTrail )
|
if( pTrail )
|
||||||
|
|||||||
Reference in New Issue
Block a user