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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user