From 5ea408a547a3d6fec17e1fdd3f0f28e8d207b96b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 14 Apr 2003 03:26:53 +0000 Subject: [PATCH] Fix SSelectStyle when JP is off. Let's always set names, even if we're not going to use something, so if something does go wrong and we use it when we didn't expect to, we can get a useful error message. --- stepmania/src/ScreenSelectStyle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenSelectStyle.cpp b/stepmania/src/ScreenSelectStyle.cpp index 89a90a1528..bd09a36243 100644 --- a/stepmania/src/ScreenSelectStyle.cpp +++ b/stepmania/src/ScreenSelectStyle.cpp @@ -106,9 +106,10 @@ ScreenSelectStyle::ScreenSelectStyle() : ScreenSelect( "ScreenSelectStyle" ) this->UpdateSelectableChoices(); + m_sprJointPremium.SetName( "JointPremium" ); + if( PREFSMAN->m_bJointPremium ) { - m_sprJointPremium.SetName( "JointPremium" ); m_sprJointPremium.Load( THEME->GetPathToG("ScreenSelectStyle joint premium") ); this->AddChild( &m_sprJointPremium ); }