diff options
Diffstat (limited to 'src/JSystem/J3DGraphAnimator/J3DNode.cpp')
| -rw-r--r-- | src/JSystem/J3DGraphAnimator/J3DNode.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/JSystem/J3DGraphAnimator/J3DNode.cpp b/src/JSystem/J3DGraphAnimator/J3DNode.cpp index c44a0ee3..006aec6f 100644 --- a/src/JSystem/J3DGraphAnimator/J3DNode.cpp +++ b/src/JSystem/J3DGraphAnimator/J3DNode.cpp @@ -8,7 +8,10 @@ /* 802F5BA4-802F5BC8 .text __ct__7J3DNodeFv */ J3DNode::J3DNode() { - /* Nonmatching */ + mCallBackUserData = NULL; + mCallBack = NULL; + mChild = NULL; + mYounger = NULL; } /* 802F5BC8-802F5C10 .text __dt__7J3DNodeFv */ @@ -17,8 +20,16 @@ J3DNode::~J3DNode() { } /* 802F5C10-802F5C44 .text appendChild__7J3DNodeFP7J3DNode */ -void J3DNode::appendChild(J3DNode*) { - /* Nonmatching */ +void J3DNode::appendChild(J3DNode* pChild) { + if (mChild == NULL) { + mChild = pChild; + } else { + J3DNode* curChild = mChild; + while (curChild->getYounger() != NULL) { + curChild = curChild->getYounger(); + } + curChild->setYounger(pChild); + } } /* 802F5C44-802F5C48 .text entryIn__7J3DNodeFv */ |
