fix assert backing out from SSCourse

This commit is contained in:
Chris Danford
2009-04-04 18:30:33 +00:00
parent 167a061b3e
commit 008c4454ce
+4 -1
View File
@@ -242,7 +242,10 @@ void BPMDisplay::SetFromGameState()
} }
if( GAMESTATE->m_pCurCourse.Get() ) if( GAMESTATE->m_pCurCourse.Get() )
{ {
SetBpmFromCourse( GAMESTATE->m_pCurCourse ); if( GAMESTATE->GetCurrentStyle() == NULL )
; // This is true when backing out from ScreenSelectCourse to ScreenTitleMenu. So, don't call SetBpmFromCourse where an assert will fire.
else
SetBpmFromCourse( GAMESTATE->m_pCurCourse );
return; return;
} }