From c2fc8b1fc10a52a921467b456b596c4164de8931 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 3 Sep 2006 02:29:11 +0000 Subject: [PATCH] Add two debugging asserts. http://sourceforge.net/tracker/index.php?func=detail&aid=1550127&group_id=37892&atid=421366 --- stepmania/src/SongUtil.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 );