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
@@ -520,6 +520,8 @@ void BGAnimationLayer::LoadFromNode( const XNode* pNode )
for( unsigned i=0; i<NumSprites; i++ )
{
Actor* pSprite = ActorUtil::MakeActor( sFile, this );
if( pSprite == NULL )
continue;
this->AddChild( pSprite );
pSprite->SetTextureWrapping( true ); // gets rid of some "cracks"
pSprite->SetZoom( randomf(fZoomMin,fZoomMax) );