diff options
Diffstat (limited to 'pmpd_tab.c')
-rw-r--r-- | pmpd_tab.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -364,7 +364,7 @@ void pmpd_linkEndT(t_pmpd *x, t_symbol *s, int argc, t_atom *argv) else { int taille_max = x->nb_link; - taille_max = min(taille_max, vecsize/2 - 1); + taille_max = min(taille_max, vecsize/2 ); for (i=0; i < taille_max ; i++) { vec[2*i ].w_float = x->link[i].mass1->posX; @@ -385,7 +385,7 @@ void pmpd_linkEndT(t_pmpd *x, t_symbol *s, int argc, t_atom *argv) { i = 0; j = 0; - while ((i < vecsize-1) && (j < x->nb_link)) + while ((i < vecsize) && (j < x->nb_link)) { if (atom_getsymbolarg(1,argc,argv) == x->link[j].Id) { @@ -437,7 +437,7 @@ void pmpd_linkEnd1T(t_pmpd *x, t_symbol *s, int argc, t_atom *argv) { i = 0; j = 0; - while ((i < vecsize-2) && (j < x->nb_link)) + while ((i < vecsize) && (j < x->nb_link)) { if (atom_getsymbolarg(1,argc,argv) == x->link[j].Id) { @@ -487,7 +487,7 @@ void pmpd_linkEnd2T(t_pmpd *x, t_symbol *s, int argc, t_atom *argv) { i = 0; j = 0; - while ((i < vecsize-2) && (j < x->nb_link)) + while ((i < vecsize) && (j < x->nb_link)) { if (atom_getsymbolarg(1,argc,argv) == x->link[j].Id) { |