fix default.xml loading
add Condition check in LoadFromActorFile
This commit is contained in:
@@ -495,6 +495,8 @@ void BGAnimationLayer::LoadFromNode( const CString& sAniDir_, const XNode& layer
|
||||
for( int i=0; i<iNumParticles; i++ )
|
||||
{
|
||||
Actor* pActor = MakeActor( sPath );
|
||||
if( pActor == NULL )
|
||||
continue;
|
||||
this->AddChild( pActor );
|
||||
pActor->SetXY( randomf(float(FullScreenRectF.left),float(FullScreenRectF.right)),
|
||||
randomf(float(FullScreenRectF.top),float(FullScreenRectF.bottom)) );
|
||||
|
||||
Reference in New Issue
Block a user