fixed crash in ScreenDemonstration if no songs

This commit is contained in:
Chris Danford
2003-01-11 18:37:52 +00:00
parent 3ff91dffb0
commit 0a92622aac
+9
View File
@@ -127,6 +127,9 @@ void ScreenDemonstration::FirstUpdate()
{
LOG->Trace( "ScreenDemonstration::FirstUpdate()" );
if( GAMESTATE->m_pCurSong == NULL )
return;
ScreenGameplay::FirstUpdate();
@@ -150,6 +153,12 @@ void ScreenDemonstration::FirstUpdate()
void ScreenDemonstration::Update( float fDeltaTime )
{
if( GAMESTATE->m_pCurSong == NULL )
{
Screen::Update(fDeltaTime); // handle screen messages
return;
}
ScreenGameplay::Update( fDeltaTime );
// hide status icons