aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2014-01-22 20:18:10 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2014-01-22 20:18:10 +0000
commit06a668e602db70c9e31b08e83f3ffc8a51aa1217 (patch)
tree8499b8f6c5565ae01cb86302e90256af7d91f60f
parentb50621a88288a2024fc107673ad0f594a4ba3790 (diff)
set mobil argument number corrected
svn path=/trunk/externals/pmpd/; revision=17242
-rw-r--r--pmpd2d_set.c2
-rw-r--r--pmpd3d_set.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/pmpd2d_set.c b/pmpd2d_set.c
index 2c448c1..1e1c9fc 100644
--- a/pmpd2d_set.c
+++ b/pmpd2d_set.c
@@ -298,7 +298,7 @@ void pmpd2d_setMobile(t_pmpd2d *x, t_symbol *s, int argc, t_atom *argv)
tmp = max(0, min( x->nb_mass-1, tmp));
x->mass[tmp].mobile = 1;
}
- else if ( (argc == 2) && (argv[0].a_type == A_SYMBOL ) )
+ else if ( (argc == 1) && (argv[0].a_type == A_SYMBOL ) )
{
for (i=0; i< x->nb_mass; i++)
{
diff --git a/pmpd3d_set.c b/pmpd3d_set.c
index 337c8b1..769a1b9 100644
--- a/pmpd3d_set.c
+++ b/pmpd3d_set.c
@@ -276,7 +276,7 @@ void pmpd3d_setFixed(t_pmpd3d *x, t_symbol *s, int argc, t_atom *argv)
tmp = max(0, min( x->nb_mass-1, tmp));
x->mass[tmp].mobile = 0;
}
- else if ( (argc == 2) && (argv[0].a_type == A_SYMBOL ) )
+ else if ( (argc == 1) && (argv[0].a_type == A_SYMBOL ) )
{
for (i=0; i< x->nb_mass; i++)
{