fix bad assert

This commit is contained in:
Chris Danford
2004-02-21 17:21:03 +00:00
parent 9771287158
commit 6b8daf8cc1
+2 -1
View File
@@ -1082,7 +1082,8 @@ void ScreenGameplay::PlayAnnouncer( CString type, float fSeconds )
/* Don't play before the first beat, or after we're finished. */
if( m_DancingState != STATE_DANCING )
return;
if( GAMESTATE->m_fSongBeat < GAMESTATE->m_pCurSong->m_fFirstBeat )
if( GAMESTATE->m_pCurSong == NULL || // this will be true on ScreenDemonstration sometimes
GAMESTATE->m_fSongBeat < GAMESTATE->m_pCurSong->m_fFirstBeat )
return;