Raw: Fix unitialized values in scene

pull/1656/head
Turo Lamminen 2017-12-24 14:38:26 +02:00
parent 1ad789bae9
commit 7932a85ca1
1 changed files with 1 additions and 0 deletions

View File

@ -245,6 +245,7 @@ void RAWImporter::InternReadFile( const std::string& pFile,
pScene->mRootNode->mNumChildren = 0; pScene->mRootNode->mNumChildren = 0;
} else { } else {
cc = new aiNode*[pScene->mRootNode->mNumChildren]; cc = new aiNode*[pScene->mRootNode->mNumChildren];
memset(cc, 0, sizeof(aiNode*) * pScene->mRootNode->mNumChildren);
pScene->mRootNode->mChildren = cc; pScene->mRootNode->mChildren = cc;
} }