Back compat hack to fix importing scores for courses that have moved into group dirs

This commit is contained in:
Chris Danford
2005-06-18 15:00:11 +00:00
parent c576001d21
commit a77e0bb273
3 changed files with 38 additions and 3 deletions
+5 -3
View File
@@ -1065,9 +1065,11 @@ Course* SongManager::GetCourseFromPath( CString sPath )
if( sPath == "" )
return NULL;
for( unsigned int i=0; i<m_pCourses.size(); i++ )
if( sPath.CompareNoCase(m_pCourses[i]->m_sPath) == 0 )
return m_pCourses[i];
FOREACH_CONST( Course*, m_pCourses, c )
{
if( sPath.CompareNoCase((*c)->m_sPath) == 0 )
return *c;
}
return NULL;
}