diff --git a/vcg/complex/algorithms/point_sampling.h b/vcg/complex/algorithms/point_sampling.h index 9289129f..d1b00b9e 100644 --- a/vcg/complex/algorithms/point_sampling.h +++ b/vcg/complex/algorithms/point_sampling.h @@ -129,9 +129,9 @@ public: public: std::vector sampleVec; - void AddVert(const VertexType &p) + void AddVert(VertexType &p) { - sampleVec->push_back(&p); + sampleVec.push_back(&p); } // This sampler should be used only for getting vertex pointers. Meaningless in other case. void AddFace(const FaceType &, const CoordType &) { assert(0); }