diff --git a/library/PolyVoxCore/include/PolyVoxCore/Mesh.h b/library/PolyVoxCore/include/PolyVoxCore/Mesh.h index ee79ecca..a1c23b50 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Mesh.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Mesh.h @@ -39,13 +39,13 @@ freely, subject to the following restrictions: namespace PolyVox { - template + template class Mesh { public: - typedef VertexType VertexType; - typedef IndexType IndexType; + typedef _VertexType VertexType; + typedef _IndexType IndexType; Mesh(); ~Mesh(); @@ -77,7 +77,7 @@ namespace PolyVox Mesh< Vertex< typename MeshType::VertexType::DataType >, typename MeshType::IndexType > result; result.m_vecVertices.resize(mesh.m_vecVertices.size()); - for(MeshType::IndexType ct = 0; ct < mesh.m_vecVertices.size(); ct++) + for(typename MeshType::IndexType ct = 0; ct < mesh.m_vecVertices.size(); ct++) { result.m_vecVertices[ct] = decode(mesh.m_vecVertices[ct]); }