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.
This commit is contained in:
Glenn Maynard
2003-04-14 03:26:53 +00:00
parent a6a827b3a8
commit 5ea408a547
+2 -1
View File
@@ -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 );
}