Check MakeActor rvs for NULL

This commit is contained in:
Devin J. Pohly
2013-11-02 04:11:30 -04:00
parent 5d9c3aaa59
commit 4298f2542d
8 changed files with 42 additions and 15 deletions
+2
View File
@@ -45,6 +45,8 @@ void Foreground::LoadFromSong( const Song *pSong )
{
bga.m_bga = ActorUtil::MakeActor( pSong->GetSongDir() + sBGName, this );
}
if( bga.m_bga == NULL )
continue;
bga.m_bga->SetName( sBGName );
bga.m_bga->PlayCommand( "Init" );
bga.m_fStartBeat = change.m_fStartBeat;