pass pParentActor

This commit is contained in:
Glenn Maynard
2006-10-15 01:21:54 +00:00
parent f4dc9ddf25
commit 72b59c1405
+2 -2
View File
@@ -401,7 +401,7 @@ Actor* ActorUtil::MakeActor( const RString &sPath_, Actor *pParentActor, const X
XmlFileUtil::CompileXNodeTree( &xml, sPath ); XmlFileUtil::CompileXNodeTree( &xml, sPath );
AnnotateXMLTree( &xml, sPath ); AnnotateXMLTree( &xml, sPath );
MergeActorXML( &xml, pParent ); MergeActorXML( &xml, pParent );
return ActorUtil::LoadFromNode( &xml ); return ActorUtil::LoadFromNode( &xml, pParentActor );
} }
case FT_Lua: case FT_Lua:
{ {
@@ -413,7 +413,7 @@ Actor* ActorUtil::MakeActor( const RString &sPath_, Actor *pParentActor, const X
} }
MergeActorXML( pNode.get(), pParent ); MergeActorXML( pNode.get(), pParent );
Actor *pRet = ActorUtil::LoadFromNode( pNode.get() ); Actor *pRet = ActorUtil::LoadFromNode( pNode.get(), pParentActor );
return pRet; return pRet;
} }
case FT_Directory: case FT_Directory: