Fix warning about non-constant array size
authorTuro Lamminen <turotl@gmail.com>
Thu, 5 Oct 2017 07:45:25 +0000 (10:45 +0300)
committerTuro Lamminen <turotl@gmail.com>
Fri, 6 Oct 2017 15:22:58 +0000 (18:22 +0300)
test/unit/TestModelFactory.h

index f848f55..ca07089 100644 (file)
@@ -89,7 +89,7 @@ public:
 
         scene->mRootNode = new aiNode;
         scene->mRootNode->mNumMeshes = 1;
-        scene->mRootNode->mMeshes = new unsigned int[scene->mRootNode->mNumMeshes]{ 0 };
+        scene->mRootNode->mMeshes = new unsigned int[1]{ 0 };
 
         return scene;
     }