From 4a926a460596db57d6e1df41a7c5725eed4f1950 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 23 Feb 2005 22:13:06 +0000 Subject: [PATCH] DifficultyMeter: set name before load --- stepmania/src/ScreenEvaluation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/ScreenEvaluation.cpp b/stepmania/src/ScreenEvaluation.cpp index 9701e1f390..eff362e054 100644 --- a/stepmania/src/ScreenEvaluation.cpp +++ b/stepmania/src/ScreenEvaluation.cpp @@ -395,6 +395,7 @@ void ScreenEvaluation::Init() SET_XY_AND_ON_COMMAND( m_DifficultyIcon[p] ); this->AddChild( &m_DifficultyIcon[p] ); + m_DifficultyMeter[p].SetName( ssprintf("DifficultyMeterP%d",p+1) ); m_DifficultyMeter[p].Load( ssprintf("ScreenEvaluation DifficultyMeterP%d",p+1) ); switch( m_Type ) { @@ -407,7 +408,6 @@ void ScreenEvaluation::Init() default: ASSERT(0); } - m_DifficultyMeter[p].SetName( ssprintf("DifficultyMeterP%d",p+1) ); SET_XY_AND_ON_COMMAND( m_DifficultyMeter[p] ); this->AddChild( &m_DifficultyMeter[p] );