From 9cd42be26541c727f2fc60f48934ac77aeea5b31 Mon Sep 17 00:00:00 2001 From: granzuglia Date: Mon, 12 Apr 2010 12:45:06 +0000 Subject: [PATCH] removed illegal *m.vert.end() --- vcg/complex/trimesh/clustering.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/clustering.h b/vcg/complex/trimesh/clustering.h index bc5094db..997371ad 100644 --- a/vcg/complex/trimesh/clustering.h +++ b/vcg/complex/trimesh/clustering.h @@ -362,7 +362,7 @@ class Clustering for(gi=GridCell.begin();gi!=GridCell.end();++gi) { VertexType *ptr=(*gi).second.Ptr(); - if(ptr && ( ptr >= &*m.vert.begin() ) && ( ptr < &*m.vert.end() ) ) + if(ptr && ( ptr >= &*m.vert.begin() ) && ( ptr <= &*(m.vert.end() - 1) ) ) ptr->SetS(); } }