diff --git a/stepmania/src/SongUtil.cpp b/stepmania/src/SongUtil.cpp index 7bc386a3b3..63faf7ef90 100644 --- a/stepmania/src/SongUtil.cpp +++ b/stepmania/src/SongUtil.cpp @@ -426,7 +426,9 @@ void SongUtil::SortSongPointerArrayByGrades( vector &vpSongsInOut, bool b int iCounts[NUM_Grade]; const Profile *pProfile = PROFILEMAN->GetMachineProfile(); + ASSERT( pProfile ); // XXX: Debugging. const Style *pStyle = GAMESTATE->GetCurrentStyle(); + ASSERT( pStyle ); // XXX: Debugging. StepsType st = pStyle->m_StepsType; pProfile->GetGrades( pSong, st, iCounts );