aboutsummaryrefslogtreecommitdiff
path: root/pmpd_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'pmpd_set.c')
-rw-r--r--pmpd_set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pmpd_set.c b/pmpd_set.c
index bb91ca0..d383430 100644
--- a/pmpd_set.c
+++ b/pmpd_set.c
@@ -118,7 +118,7 @@ void pmpd_setLCurrent(t_pmpd *x, t_symbol *s, int argc, t_atom *argv)
{ // set a link to it's current length
tmp = atom_getfloatarg(0, argc, argv);
tmp = max(0, min( x->nb_link-1, tmp));
- x->link[tmp].L = x->link[i].distance;
+ x->link[tmp].L = x->link[tmp].distance;
}
else if ( ( argc == 1 ) && ( argv[0].a_type == A_SYMBOL ) )
{ // set a class of link to there current length