From 8c0341c3c6cc82fc248bda7ce40228b8bef54433 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 28 Dec 2011 22:32:54 -0500 Subject: [PATCH] ScreenHowToPlay shouldn't crash now. ...still now happy with the actual result, but... ...well, anyone want a stab? --- src/ScreenHowToPlay.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ScreenHowToPlay.cpp b/src/ScreenHowToPlay.cpp index bb5e021db2..38d7974a47 100644 --- a/src/ScreenHowToPlay.cpp +++ b/src/ScreenHowToPlay.cpp @@ -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],