Fixed crash in demo if no songs.

This commit is contained in:
Chris Danford
2003-01-19 21:05:03 +00:00
parent 2e10cb86df
commit d84e10f9d2
4 changed files with 23 additions and 5 deletions
+3
View File
@@ -100,6 +100,9 @@ ScreenGameplay::ScreenGameplay( bool bDemonstration )
{
LOG->Trace( "ScreenGameplay::ScreenGameplay()" );
if( GAMESTATE->m_pCurSong == NULL )
return; // ScreenDemonstration will move us to the next scren. We just need to survive for one update without crashing.
int p;
for( p=0; p<NUM_PLAYERS; p++ )