From 4df246ea0914ed2ba827503d55d1577197750755 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 18 Mar 2007 01:11:02 +0000 Subject: [PATCH] fix up XML --- stepmania/src/ActorFrame.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ActorFrame.cpp b/stepmania/src/ActorFrame.cpp index 2302667b4f..06e22ba46f 100644 --- a/stepmania/src/ActorFrame.cpp +++ b/stepmania/src/ActorFrame.cpp @@ -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 );