From 6b8daf8cc1800e5fd8c74c4e5ea84b4bff061348 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 21 Feb 2004 17:21:03 +0000 Subject: [PATCH] fix bad assert --- stepmania/src/ScreenGameplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index cd9d91c584..85e7f40fd6 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -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;