fix loading ""

This commit is contained in:
Glenn Maynard
2004-06-29 21:12:45 +00:00
parent 45e017b517
commit 1ec55117e7
+8 -2
View File
@@ -76,9 +76,15 @@ ScreenSelectMusic::ScreenSelectMusic( CString sClassName ) : ScreenWithMenuEleme
// pop'n music has this under the songwheel...
FOREACH_PlayerNumber( p )
{
Character* pChar = GAMESTATE->m_pCurCharacters[p];
m_sprCharacterIcon[p].SetName( ssprintf("CharacterIconP%d",p+1) );
m_sprCharacterIcon[p].Load( pChar->GetSongSelectIconPath() );
Character* pChar = GAMESTATE->m_pCurCharacters[p];
CString sPath = pChar->GetSongSelectIconPath();
if( sPath.empty() )
continue;
m_sprCharacterIcon[p].Load( sPath );
SET_XY( m_sprCharacterIcon[p] );
this->AddChild( &m_sprCharacterIcon[p] );
}