[ScreenGameplaySyncMachine] Fixed a crash when entering ScreenGameplaySyncMachine as Player 2. (Fixes issue 127)
This commit is contained in:
@@ -17,6 +17,8 @@ sm-ssc v1.2.5 | 201104??
|
|||||||
--------
|
--------
|
||||||
* [CourseLoaderCRS] Fixed loading of Player's Best/Most Played courses,
|
* [CourseLoaderCRS] Fixed loading of Player's Best/Most Played courses,
|
||||||
probably others too. [AJ]
|
probably others too. [AJ]
|
||||||
|
* [ScreenGameplaySyncMachine] Fixed a crash when entering
|
||||||
|
ScreenGameplaySyncMachine as Player 2. (Fixes issue 127) [AJ]
|
||||||
|
|
||||||
20110422
|
20110422
|
||||||
--------
|
--------
|
||||||
|
|||||||
@@ -35,8 +35,7 @@ void ScreenGameplaySyncMachine::Init()
|
|||||||
SongUtil::GetPlayableSteps( &m_Song, vpSteps );
|
SongUtil::GetPlayableSteps( &m_Song, vpSteps );
|
||||||
ASSERT_M(vpSteps.size() > 0, "No playable steps for ScreenGameplaySyncMachine");
|
ASSERT_M(vpSteps.size() > 0, "No playable steps for ScreenGameplaySyncMachine");
|
||||||
Steps *pSteps = vpSteps[0];
|
Steps *pSteps = vpSteps[0];
|
||||||
// TODO: Either detect which player accessed this file, or FOREACH all of them. -Wolfman2000
|
GAMESTATE->m_pCurSteps[GAMESTATE->GetFirstHumanPlayer()].Set( pSteps );
|
||||||
GAMESTATE->m_pCurSteps[0].Set( pSteps );
|
|
||||||
|
|
||||||
GamePreferences::m_AutoPlay.Set( PC_HUMAN );
|
GamePreferences::m_AutoPlay.Set( PC_HUMAN );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user