From c10b148c202a50ea546997fec0e9b1432774d4e0 Mon Sep 17 00:00:00 2001 From: Cyrille Henry Date: Sat, 19 Feb 2011 15:49:52 +0000 Subject: few updates, but still somes small incompatibilities with msd* svn path=/trunk/externals/pmpd/; revision=14930 --- pmpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pmpd.c') diff --git a/pmpd.c b/pmpd.c index 21aac85..47a366d 100644 --- a/pmpd.c +++ b/pmpd.c @@ -1075,7 +1075,7 @@ void pmpd_massesPosMean(t_pmpd *x, t_symbol *s, int argc, t_atom *argv) sommeX = 0; j = 0; - if ( argv[0].a_type == A_SYMBOL ) + if ( (argc >= 1) & (argv[0].a_type == A_SYMBOL) ) { for (i=0; i< x->nb_mass; i++) { @@ -1113,7 +1113,7 @@ void pmpd_massesPosStd(t_pmpd *x, t_symbol *s, int argc, t_atom *argv) stdX = 0; j = 0; - if ( argv[0].a_type == A_SYMBOL ) + if ( (argc >= 1) & (argv[0].a_type == A_SYMBOL) ) { for (i=0; i< x->nb_mass; i++) { -- cgit v1.2.1