From a02cc6c98ed72504df15ed6f6f24ee7a4503e0c1 Mon Sep 17 00:00:00 2001 From: JLouis-B Date: Wed, 30 Dec 2015 19:01:04 +0100 Subject: [PATCH] Fix a crash issue in XFileExporter --- code/XFileExporter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/XFileExporter.cpp b/code/XFileExporter.cpp index 55cf95c5d..d0d05fea6 100644 --- a/code/XFileExporter.cpp +++ b/code/XFileExporter.cpp @@ -309,12 +309,12 @@ void XFileExporter::WriteNode( aiNode* pNode) WriteFrameTransform(m); - for (size_t i = 0; i < pNode->mNumMeshes; i++) + for (size_t i = 0; i < pNode->mNumMeshes; ++i) WriteMesh(mScene->mMeshes[pNode->mMeshes[i]]); // recursive call the Nodes for (size_t i = 0; i < pNode->mNumChildren; ++i) - WriteNode( mScene->mRootNode->mChildren[i]); + WriteNode(pNode->mChildren[i]); PopTag();