fix crash in 2P modes
This commit is contained in:
@@ -198,6 +198,14 @@ ScreenSelectMusic::ScreenSelectMusic( CString sClassName ) : Screen( sClassName
|
|||||||
SET_XY( m_MachineRank );
|
SET_XY( m_MachineRank );
|
||||||
this->AddChild( &m_MachineRank );
|
this->AddChild( &m_MachineRank );
|
||||||
|
|
||||||
|
if( SHOW_DIFFICULTY_LIST )
|
||||||
|
{
|
||||||
|
m_DifficultyList.SetName( "DifficultyList" );
|
||||||
|
m_DifficultyList.Load();
|
||||||
|
SET_XY_AND_ON_COMMAND( m_DifficultyList );
|
||||||
|
this->AddChild( &m_DifficultyList );
|
||||||
|
}
|
||||||
|
|
||||||
for( p=0; p<NUM_PLAYERS; p++ )
|
for( p=0; p<NUM_PLAYERS; p++ )
|
||||||
{
|
{
|
||||||
if( !GAMESTATE->IsHumanPlayer(p) )
|
if( !GAMESTATE->IsHumanPlayer(p) )
|
||||||
@@ -229,14 +237,6 @@ ScreenSelectMusic::ScreenSelectMusic( CString sClassName ) : Screen( sClassName
|
|||||||
SET_XY( m_sprMeterFrame[p] );
|
SET_XY( m_sprMeterFrame[p] );
|
||||||
this->AddChild( &m_sprMeterFrame[p] );
|
this->AddChild( &m_sprMeterFrame[p] );
|
||||||
|
|
||||||
if( SHOW_DIFFICULTY_LIST )
|
|
||||||
{
|
|
||||||
m_DifficultyList.SetName( "DifficultyList" );
|
|
||||||
m_DifficultyList.Load();
|
|
||||||
SET_XY_AND_ON_COMMAND( m_DifficultyList );
|
|
||||||
this->AddChild( &m_DifficultyList );
|
|
||||||
}
|
|
||||||
|
|
||||||
if( SHOW_PANES )
|
if( SHOW_PANES )
|
||||||
{
|
{
|
||||||
m_PaneDisplay[p].SetName( "PaneDisplay", ssprintf("PaneDisplayP%d",p+1) );
|
m_PaneDisplay[p].SetName( "PaneDisplay", ssprintf("PaneDisplayP%d",p+1) );
|
||||||
|
|||||||
Reference in New Issue
Block a user