fix up XML

This commit is contained in:
Glenn Maynard
2007-03-18 01:11:02 +00:00
parent 6d25a169fb
commit 4df246ea09
+5 -1
View File
@@ -100,12 +100,16 @@ void ActorFrame::LoadChildrenFromNode( const XNode* pNode )
// Load children
//
const XNode* pChildren = pNode->GetChild("children");
bool bArrayOnly = false;
if( pChildren == NULL )
{
bArrayOnly = true;
pChildren = pNode;
}
FOREACH_CONST_Child( pChildren, pChild )
{
if( !IsAnInt(pChild->GetName()) )
if( bArrayOnly && !IsAnInt(pChild->GetName()) )
continue;
Actor* pChildActor = ActorUtil::LoadFromNode( pChild, this );