From 7932a85ca16d8e87b008a1634d6f45a28383246c Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Sun, 24 Dec 2017 14:38:26 +0200 Subject: [PATCH] Raw: Fix unitialized values in scene --- code/RawLoader.cpp | 1 + 1 file changed, 1 insertion(+) 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; }