From 543bd5c0d0ce26ebbc3e30547b0cfad26ac1f04a Mon Sep 17 00:00:00 2001 From: Johannes Ebersold Date: Wed, 19 Nov 2014 13:51:22 +0100 Subject: [PATCH] ColladaParser::ReadPrimitives: rename "a" to currentPrimitive --- code/ColladaParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ColladaParser.cpp b/code/ColladaParser.cpp index dffb04c3d..693588810 100644 --- a/code/ColladaParser.cpp +++ b/code/ColladaParser.cpp @@ -2105,7 +2105,7 @@ void ColladaParser::ReadPrimitives( Mesh* pMesh, std::vector& pPer pMesh->mFaceSize.reserve( numPrimitives); pMesh->mFacePosIndices.reserve( indices.size() / numOffsets); - for( size_t a = 0; a < numPrimitives; a++) + for (size_t currentPrimitive = 0; currentPrimitive < numPrimitives; currentPrimitive++) { // determine number of points for this primitive size_t numPoints = 0; @@ -2118,7 +2118,7 @@ void ColladaParser::ReadPrimitives( Mesh* pMesh, std::vector& pPer numPoints = 3; break; case Prim_Polylist: - numPoints = pVCount[a]; + numPoints = pVCount[currentPrimitive]; break; case Prim_TriFans: case Prim_Polygon: