From ae8a4c0c62f43db2126fc7228877346d271a5600 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Thu, 5 Oct 2017 10:45:25 +0300 Subject: [PATCH] Fix warning about non-constant array size --- test/unit/TestModelFactory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/TestModelFactory.h b/test/unit/TestModelFactory.h index f848f5536..ca070890d 100644 --- a/test/unit/TestModelFactory.h +++ b/test/unit/TestModelFactory.h @@ -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; }