From e47bf932e8b8a7780e996d9800a5414c3d3cbd17 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 14 Nov 2017 19:08:41 +0200 Subject: [PATCH] SIBImporter: Add assertions to silence static analyzer warnings --- code/SIBImporter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/SIBImporter.cpp b/code/SIBImporter.cpp index e85c9bdcb..2127e2e0c 100644 --- a/code/SIBImporter.cpp +++ b/code/SIBImporter.cpp @@ -902,6 +902,7 @@ void SIBImporter::InternReadFile(const std::string& pFile, // Add nodes for each object. for (size_t n=0;nmChildren); SIBObject& obj = sib.objs[n]; aiNode* node = new aiNode; root->mChildren[childIdx++] = node; @@ -926,6 +927,7 @@ void SIBImporter::InternReadFile(const std::string& pFile, // (no transformation as the light is already in world space) for (size_t n=0;nmChildren); aiLight* light = sib.lights[n]; if ( nullptr != light ) { aiNode* node = new aiNode;