fix crash if no courses in STestMode
This commit is contained in:
@@ -123,7 +123,8 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName ) : ScreenWithMenuElement
|
||||
GAMESTATE->m_pCurSteps[p].Set( GAMESTATE->m_pCurSong->GetAllSteps()[0] );
|
||||
vector<Trail*> apTrails;
|
||||
GAMESTATE->m_pCurCourse->GetAllTrails( apTrails );
|
||||
GAMESTATE->m_pCurTrail[p].Set( apTrails[0] );
|
||||
if( apTrails.size() )
|
||||
GAMESTATE->m_pCurTrail[p].Set( apTrails[0] );
|
||||
STATSMAN->m_CurStageStats.m_player[p].vpPlayedSteps.push_back( GAMESTATE->m_pCurSteps[PLAYER_1] );
|
||||
STATSMAN->m_CurStageStats.m_player[p].vpPossibleSteps.push_back( GAMESTATE->m_pCurSteps[PLAYER_1] );
|
||||
GAMESTATE->m_pPlayerState[p]->m_PlayerOptions.m_fScrollSpeed = 2;
|
||||
|
||||
Reference in New Issue
Block a user