stop accessing Song::m_vpSteps directly
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user