From 2d9aeb4701d02080f9876e4eda062dabcff3f701 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 28 May 2003 03:32:07 +0000 Subject: [PATCH] fix crash with no music --- stepmania/src/LyricDisplay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/LyricDisplay.cpp b/stepmania/src/LyricDisplay.cpp index 023bd37e06..29cc9d3120 100644 --- a/stepmania/src/LyricDisplay.cpp +++ b/stepmania/src/LyricDisplay.cpp @@ -33,6 +33,9 @@ void LyricDisplay::Update( float fDeltaTime ) { ActorFrame::Update( fDeltaTime ); + if( GAMESTATE->m_pCurSong == NULL ) + return; + /* If the song has changed (in a course), reset. */ if( GAMESTATE->m_fMusicSeconds < m_fLastSecond ) Init();