diff --git a/libsrc/meshing/meshtype.cpp b/libsrc/meshing/meshtype.cpp index b32068a0..db0932b1 100644 --- a/libsrc/meshing/meshtype.cpp +++ b/libsrc/meshing/meshtype.cpp @@ -236,8 +236,8 @@ namespace netgen np = 3; typ = TRIG; - for (int i = 0; i < ELEMENT2D_MAXPOINTS; i++) - pnum[i].Invalidate(); + for (int i = 3; i < ELEMENT2D_MAXPOINTS; i++) + pnum[i].Invalidate(); for (int i = 0; i < ELEMENT2D_MAXPOINTS; i++) geominfo[i].trignum = 0;