fix default.xml loading

add Condition check in LoadFromActorFile
This commit is contained in:
Chris Danford
2005-01-17 04:08:08 +00:00
parent f26a33713d
commit a5d40aad79
4 changed files with 42 additions and 8 deletions
+2
View File
@@ -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)) );