ScreenHowToPlay shouldn't crash now.

...still now happy with the actual result, but...

...well, anyone want a stab?
This commit is contained in:
Jason Felds
2011-12-28 22:32:54 -05:00
parent 2ebb395e68
commit 8c0341c3c6
+3 -2
View File
@@ -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],