From d95fc3a7109f68cf672f9849c9042fcc357dad45 Mon Sep 17 00:00:00 2001 From: Cyrille Henry Date: Mon, 25 Aug 2014 12:46:52 +0000 Subject: init correction for closestMass svn path=/trunk/externals/pmpd/; revision=17340 --- pmpd2d_various.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pmpd2d_various.c b/pmpd2d_various.c index 9eb9248..7a31c4f 100644 --- a/pmpd2d_various.c +++ b/pmpd2d_various.c @@ -346,6 +346,7 @@ void pmpd2d_closestMass(t_pmpd2d *x, t_symbol *s, int argc, t_atom *argv)// t_fl else { if ((x->nb_mass > 0)) { + x->grab_nb= 0; dist = sqr(x->mass[0].posX - posX) + sqr(x->mass[0].posY - posY); for (i=1; inb_mass; i++) { -- cgit v1.2.1