aboutsummaryrefslogtreecommitdiff
path: root/pmpd2d.c
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2011-02-19 15:49:52 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2011-02-19 15:49:52 +0000
commitc10b148c202a50ea546997fec0e9b1432774d4e0 (patch)
tree94a4cf474772dfe794fb76e07080e782de888af8 /pmpd2d.c
parentf780da9eb0553362269fd5bf25435ec6c205d9c6 (diff)
few updates, but still somes small incompatibilities with msd*
svn path=/trunk/externals/pmpd/; revision=14930
Diffstat (limited to 'pmpd2d.c')
-rw-r--r--pmpd2d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pmpd2d.c b/pmpd2d.c
index 0a281f7..f10d410 100644
--- a/pmpd2d.c
+++ b/pmpd2d.c
@@ -1681,7 +1681,7 @@ void pmpd2d_massesPosMean(t_pmpd2d *x, t_symbol *s, int argc, t_atom *argv)
somme = 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++)
{
@@ -1731,7 +1731,7 @@ void pmpd2d_massesPosStd(t_pmpd2d *x, t_symbol *s, int argc, t_atom *argv)
std = 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++)
{