diff --git a/code/RawLoader.cpp b/code/RawLoader.cpp index f8ca4e689..13deb0005 100644 --- a/code/RawLoader.cpp +++ b/code/RawLoader.cpp @@ -245,6 +245,7 @@ void RAWImporter::InternReadFile( const std::string& pFile, pScene->mRootNode->mNumChildren = 0; } else { cc = new aiNode*[pScene->mRootNode->mNumChildren]; + memset(cc, 0, sizeof(aiNode*) * pScene->mRootNode->mNumChildren); pScene->mRootNode->mChildren = cc; }