stop accessing Song::m_vpSteps directly

This commit is contained in:
Glenn Maynard
2004-06-04 23:29:13 +00:00
parent 693eee576a
commit c266c71dca
4 changed files with 16 additions and 11 deletions
+3 -1
View File
@@ -491,8 +491,10 @@ static vector<Song*> GetFilteredBestSongs( StepsType st )
if( SONGMAN->GetNumStagesForSong(pSong) > 1 )
continue;
const vector<Steps*>& vpSteps = pSong->GetAllSteps();
bool FoundMedium = false, FoundHard = false;
FOREACH( Steps*, pSong->m_vpSteps, pSteps )
FOREACH_CONST( Steps*, vpSteps, pSteps )
{
if( (*pSteps)->m_StepsType != st )
continue;