From 3f299b2a2bf56d75bb3336bda19dab445be66fcd Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 7 Nov 2017 19:32:33 +0200 Subject: [PATCH] NFF: Split up some complicated assignments --- code/NFFLoader.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/NFFLoader.cpp b/code/NFFLoader.cpp index b6dd2fb33..396fb28bf 100644 --- a/code/NFFLoader.cpp +++ b/code/NFFLoader.cpp @@ -1079,7 +1079,8 @@ void NFFImporter::InternReadFile( const std::string& pFile, // generate the camera if (hasCam) { - aiNode* nd = *ppcChildren = new aiNode(); + aiNode* nd = new aiNode(); + *ppcChildren = nd; nd->mName.Set(""); nd->mParent = root; @@ -1109,7 +1110,8 @@ void NFFImporter::InternReadFile( const std::string& pFile, { const Light& l = lights[i]; - aiNode* nd = *ppcChildren = new aiNode(); + aiNode* nd = new aiNode(); + *ppcChildren = nd; nd->mParent = root; nd->mName.length = ::ai_snprintf(nd->mName.data,1024,"",i);