SetBpmFromCourse might be crashing while dereferencing something (bug 2068075). Add assert.

This commit is contained in:
Steve Checkoway
2008-09-24 17:33:11 +00:00
parent 46130b0d3f
commit d33a70faa9
+1
View File
@@ -197,6 +197,7 @@ void BPMDisplay::SetBpmFromSong( const Song* pSong )
void BPMDisplay::SetBpmFromCourse( const Course* pCourse )
{
ASSERT( pCourse );
ASSERT( GAMESTATE->GetCurrentStyle() );
StepsType st = GAMESTATE->GetCurrentStyle()->m_StepsType;
Trail *pTrail = pCourse->GetTrail( st );