Skip to content
Snippets Groups Projects
Commit 5b2c4725 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*fixed bug where trigger when fed anything (e.g. a single word, like...

*fixed bug where trigger when fed anything (e.g.  a single word, like "restart," with no symbol prefix), it would output data twice through some outlets due to faulty way of dealing with anything->list function call.
parent 46769655
No related branches found
No related tags found
No related merge requests found
......@@ -1132,6 +1132,7 @@ static void *trigger_new(t_symbol *s, int argc, t_atom *argv)
static void trigger_list(t_trigger *x, t_symbol *s, int argc, t_atom *argv)
{
//fprintf(stderr,"trigger_list %s\n", s->s_name);
t_triggerout *u;
int i;
for (i = x->x_n, u = x->x_vec + i; u--, i--;)
......@@ -1185,7 +1186,11 @@ static void trigger_anything(t_trigger *x, t_symbol *s, int argc, t_atom *argv)
{
outlet_symbol(u->u_outlet, &u->u_sym);
}
else trigger_symbol(x, s);
else
{
trigger_symbol(x, s);
break;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment