From d33a70faa994d2cf7fcabe00e6e278351cbca4e9 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Wed, 24 Sep 2008 17:33:11 +0000 Subject: [PATCH] SetBpmFromCourse might be crashing while dereferencing something (bug 2068075). Add assert. --- stepmania/src/BPMDisplay.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/BPMDisplay.cpp b/stepmania/src/BPMDisplay.cpp index 96a59c6fea..83bc74c3d6 100644 --- a/stepmania/src/BPMDisplay.cpp +++ b/stepmania/src/BPMDisplay.cpp @@ -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 );