This commit is contained in:
Josh Allen
2006-08-01 21:55:32 +00:00
parent c1899d448f
commit e9bc3ab514
+4 -8
View File
@@ -256,20 +256,16 @@ bool MusicWheel::SelectSongOrCourse()
bool MusicWheel::SelectSection( const RString & SectionName ) bool MusicWheel::SelectSection( const RString & SectionName )
{ {
unsigned int i; for( unsigned int i = 0; i < m_CurWheelItemData.size(); ++i )
for( i=0; i<m_CurWheelItemData.size(); i++ )
{
if( m_CurWheelItemData[i]->m_sText == SectionName ) if( m_CurWheelItemData[i]->m_sText == SectionName )
{ {
m_iSelection = i; // select it m_iSelection = i; // select it
break;
}
}
if ( i == m_CurWheelItemData.size() )
return false;
return true; return true;
} }
return false;
}
bool MusicWheel::SelectSong( Song *p ) bool MusicWheel::SelectSong( Song *p )
{ {
if(p == NULL) if(p == NULL)