Bläddra i källkod

ColladaParser::ReadPrimitives: rename "a" to currentPrimitive

Johannes Ebersold 11 år sedan
förälder
incheckning
543bd5c0d0
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      code/ColladaParser.cpp

+ 2 - 2
code/ColladaParser.cpp

@@ -2105,7 +2105,7 @@ void ColladaParser::ReadPrimitives( Mesh* pMesh, std::vector<InputChannel>& 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<InputChannel>& pPer
 				numPoints = 3; 
 				break;
 			case Prim_Polylist: 
-				numPoints = pVCount[a];
+				numPoints = pVCount[currentPrimitive];
 				break;
 			case Prim_TriFans: 
 			case Prim_Polygon: