diff --git a/Applications/FileIO/TetGenInterface.cpp b/Applications/FileIO/TetGenInterface.cpp index 7726fa4518c1fb4632219260f414d9b863a96d1a..b33d164e0fbb3e36e245aa27f094f312cef5bbb2 100644 --- a/Applications/FileIO/TetGenInterface.cpp +++ b/Applications/FileIO/TetGenInterface.cpp @@ -492,8 +492,9 @@ bool TetGenInterface::parseElements(std::ifstream& ins, } // insert new element into vector auto** tet_nodes = new MeshLib::Node*[4]; - for (unsigned k(0); k<4; k++) { - tet_nodes[k] = nodes[ids[k]]; + for (int n = 0; n < 4; n++) + { + tet_nodes[n] = nodes[ids[n]]; } elements.push_back (new MeshLib::Tet(tet_nodes)); materials.push_back(region);