Make all uses of the Steps* in the TrailEntry class use an accessor method.
This makes it simple to switch to something else, such as using a StepsId instead of a Steps*.
This commit is contained in:
@@ -173,7 +173,7 @@ void CourseEntryDisplay::SetFromGameState( int iCourseEntryIndex )
|
||||
const TrailEntry *te = tes[pn];
|
||||
if( te == NULL )
|
||||
continue;
|
||||
SetDifficulty( pn, ssprintf("%d", te->pSteps->GetMeter()), te->pSteps->GetDifficulty() );
|
||||
SetDifficulty( pn, ssprintf("%d", te->GetSteps()->GetMeter()), te->GetSteps()->GetDifficulty() );
|
||||
}
|
||||
|
||||
m_TextBanner.LoadFromSong( te->pSong );
|
||||
|
||||
Reference in New Issue
Block a user