Set name before calling Load().

This commit is contained in:
Glenn Maynard
2003-10-05 23:00:26 +00:00
parent 5a21030ca8
commit a943057db7
+1 -1
View File
@@ -398,8 +398,8 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName ) : Screen(sClassName)
{
for( p=0; p<NUM_PLAYERS; p++ )
{
m_sprPercentFrame[p].Load( THEME->GetPathToG(ssprintf("ScreenEvaluation percent frame p%d",p+1)) );
m_sprPercentFrame[p].SetName( ssprintf("PercentFrameP%d",p+1) );
m_sprPercentFrame[p].Load( THEME->GetPathToG(ssprintf("ScreenEvaluation percent frame p%d",p+1)) );
UtilSetXYAndOnCommand( m_sprPercentFrame[p], "ScreenEvaluation" );
this->AddChild( &m_sprPercentFrame[p] );