[ScreenGameplaySyncMachine] Fixed a crash when entering ScreenGameplaySyncMachine as Player 2. (Fixes issue 127)

This commit is contained in:
AJ Kelly
2011-04-23 16:05:40 -05:00
parent 1d0fb92ebe
commit 73b42e87b0
2 changed files with 3 additions and 2 deletions
+2
View File
@@ -17,6 +17,8 @@ sm-ssc v1.2.5 | 201104??
--------
* [CourseLoaderCRS] Fixed loading of Player's Best/Most Played courses,
probably others too. [AJ]
* [ScreenGameplaySyncMachine] Fixed a crash when entering
ScreenGameplaySyncMachine as Player 2. (Fixes issue 127) [AJ]
20110422
--------
+1 -2
View File
@@ -35,8 +35,7 @@ void ScreenGameplaySyncMachine::Init()
SongUtil::GetPlayableSteps( &m_Song, vpSteps );
ASSERT_M(vpSteps.size() > 0, "No playable steps for ScreenGameplaySyncMachine");
Steps *pSteps = vpSteps[0];
// TODO: Either detect which player accessed this file, or FOREACH all of them. -Wolfman2000
GAMESTATE->m_pCurSteps[0].Set( pSteps );
GAMESTATE->m_pCurSteps[GAMESTATE->GetFirstHumanPlayer()].Set( pSteps );
GamePreferences::m_AutoPlay.Set( PC_HUMAN );