Fix crash for courses.
This commit is contained in:
@@ -311,7 +311,11 @@ void MusicWheelItem::RefreshGrades()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
m_pGradeDisplay[p]->SetVisible( true );
|
m_pGradeDisplay[p]->SetVisible( true );
|
||||||
Grade g = PROFILEMAN->GetGradeForSteps( data->m_pSong, GAMESTATE->GetCurrentStyle(), ps, dc );
|
Grade g;
|
||||||
|
if( data->m_pSong )
|
||||||
|
g = PROFILEMAN->GetGradeForSteps( data->m_pSong, GAMESTATE->GetCurrentStyle(), ps, dc );
|
||||||
|
else
|
||||||
|
g = PROFILEMAN->GetGradeForTrail( data->m_pCourse, GAMESTATE->GetCurrentStyle(), ps, dc );
|
||||||
Message msg( "SetGrade" );
|
Message msg( "SetGrade" );
|
||||||
msg.SetParam( "PlayerNumber", p );
|
msg.SetParam( "PlayerNumber", p );
|
||||||
msg.SetParam( "Grade", g );
|
msg.SetParam( "Grade", g );
|
||||||
|
|||||||
Reference in New Issue
Block a user