don't use Name/ID to load DifficultyMeter. We only need the Name at load time, so pass it into Load and don't save it in the Actor.
This commit is contained in:
@@ -264,8 +264,8 @@ void ScreenSelectMusic::Init()
|
||||
this->AddChild( &m_PaneDisplay[p] );
|
||||
}
|
||||
|
||||
m_DifficultyMeter[p].SetName( "DifficultyMeter", ssprintf("MeterP%d",p+1) );
|
||||
m_DifficultyMeter[p].Load();
|
||||
m_DifficultyMeter[p].SetName( ssprintf("MeterP%d",p+1) );
|
||||
m_DifficultyMeter[p].Load( "DifficultyMeter" );
|
||||
SET_XY_AND_ON_COMMAND( m_DifficultyMeter[p] );
|
||||
this->AddChild( &m_DifficultyMeter[p] );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user