From 8f93b054f8048e335f265aae0abadbc051868c14 Mon Sep 17 00:00:00 2001 From: David Williams Date: Fri, 11 Nov 2011 23:24:16 +0000 Subject: [PATCH] Compile fix --- library/PolyVoxCore/source/MeshDecimator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/PolyVoxCore/source/MeshDecimator.cpp b/library/PolyVoxCore/source/MeshDecimator.cpp index 686e62c2..daf6867b 100644 --- a/library/PolyVoxCore/source/MeshDecimator.cpp +++ b/library/PolyVoxCore/source/MeshDecimator.cpp @@ -73,7 +73,7 @@ namespace PolyVox for(uint32_t ct = 0; ct < m_pOutputMesh->m_vecVertices.size(); ct++) { Vector3DFloat sumOfNormals(0.0f,0.0f,0.0f); - for(vector::const_iterator iter = trianglesUsingVertex[ct].cbegin(); iter != trianglesUsingVertex[ct].cend(); iter++) + for(vector::iterator iter = trianglesUsingVertex[ct].begin(); iter != trianglesUsingVertex[ct].end(); iter++) { sumOfNormals += m_vecTriangles[*iter].normal; }