diff --git a/libsrc/meshing/smoothing3.cpp b/libsrc/meshing/smoothing3.cpp index 79530dbf..b172ddaf 100644 --- a/libsrc/meshing/smoothing3.cpp +++ b/libsrc/meshing/smoothing3.cpp @@ -1476,7 +1476,7 @@ void Mesh :: ImproveMesh (const MeshingParameters & mp, OPTIMIZEGOAL goal) const auto & getDofs = [&] (int i) { i += PointIndex::BASE; - return FlatArray(elementsonpoint[i].Size(), &elementsonpoint[i][0]); + return FlatArray(elementsonpoint[i].Size(), elementsonpoint[i].Data()); }; Array colors(points.Size());