diff --git a/library/PolyVoxCore/include/PolyVoxCore/Mesh.h b/library/PolyVoxCore/include/PolyVoxCore/Mesh.h index 802b0656..4c1b3582 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Mesh.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Mesh.h @@ -81,7 +81,7 @@ namespace PolyVox { Mesh< Vertex< typename MeshType::VertexType::DataType >, typename MeshType::IndexType > decodedMesh; - for (MeshType::IndexType ct = 0; ct < encodedMesh.getNoOfVertices(); ct++) + for (typename MeshType::IndexType ct = 0; ct < encodedMesh.getNoOfVertices(); ct++) { decodedMesh.addVertex(decodeVertex(encodedMesh.getVertex(ct))); }