fix course mode crash

This commit is contained in:
Glenn Maynard
2004-02-13 23:49:40 +00:00
parent 15e01b4e23
commit 2d66d22ab6
+3 -3
View File
@@ -19,10 +19,10 @@
SongCreditDisplay::SongCreditDisplay()
{
this->LoadFromFont( THEME->GetPathToF("SongCreditDisplay",(CString)"text") );
Song* pSong = GAMESTATE->m_pCurSong;
if( pSong == NULL ) /* probably course mode */
if( GAMESTATE->IsCourseMode() )
return;
Song* pSong = GAMESTATE->m_pCurSong;
ASSERT( pSong );
CString s;
s += pSong->GetFullDisplayTitle() + "\n";