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; } }