diff --git a/vcg/simplex/face/component.h b/vcg/simplex/face/component.h index cca7b210..ebdc3739 100644 --- a/vcg/simplex/face/component.h +++ b/vcg/simplex/face/component.h @@ -613,9 +613,9 @@ face of the ring of faces incident on a edge. template class FFAdj: public T { public: FFAdj(){ - _ffp[0]=0; - _ffp[1]=0; - _ffp[2]=0; + _ffp[0]=nullptr; // null == not initialized + _ffp[1]=nullptr; + _ffp[2]=nullptr; } typename T::FacePointer &FFp(const int j) { assert(j>=0 && j<3); return _ffp[j]; } typename T::FacePointer cFFp(const int j) const { assert(j>=0 && j<3); return _ffp[j]; }