From 729882debba7c01ac0c7992eb9c84a178d01511c Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 11 Aug 2020 19:57:36 +0200 Subject: [PATCH] Fix incorrect index closes https://github.com/assimp/assimp/issues/3364 --- code/Common/StandardShapes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Common/StandardShapes.cpp b/code/Common/StandardShapes.cpp index b30fa2e25..99029a925 100644 --- a/code/Common/StandardShapes.cpp +++ b/code/Common/StandardShapes.cpp @@ -139,7 +139,7 @@ aiMesh *StandardShapes::MakeMesh(const std::vector &positions, aiFace &f = out->mFaces[i]; f.mNumIndices = numIndices; f.mIndices = new unsigned int[numIndices]; - for (unsigned int j = 0; i < numIndices; ++i, ++a) { + for (unsigned int j = 0; j < numIndices; ++j, ++a) { f.mIndices[j] = a; } }