ScreenHowToPlay shouldn't crash now.
...still now happy with the actual result, but... ...well, anyone want a stab?
This commit is contained in:
@@ -147,15 +147,16 @@ void ScreenHowToPlay::Init()
|
||||
|
||||
Steps *pSteps = SongUtil::GetStepsByDescription( &m_Song, pStyle->m_StepsType, "" );
|
||||
ASSERT_M( pSteps != NULL, ssprintf("No playable steps of StepsType '%s' for ScreenHowToPlay", StringConversion::ToString(pStyle->m_StepsType).c_str()) );
|
||||
|
||||
|
||||
NoteData tempNoteData;
|
||||
pSteps->GetNoteData( tempNoteData );
|
||||
pStyle->GetTransformedNoteDataForStyle( PLAYER_1, tempNoteData, m_NoteData );
|
||||
|
||||
GAMESTATE->m_pCurSong.Set( &m_Song );
|
||||
GAMESTATE->m_pCurSteps[PLAYER_1].Set(pSteps);
|
||||
GAMESTATE->m_bGameplayLeadIn.Set( false );
|
||||
GAMESTATE->m_pPlayerState[PLAYER_1]->m_PlayerController = PC_AUTOPLAY;
|
||||
|
||||
|
||||
m_Player->Init(
|
||||
"Player",
|
||||
GAMESTATE->m_pPlayerState[PLAYER_1],
|
||||
|
||||
Reference in New Issue
Block a user