Skip to content

Commit

Permalink
map lhs variable to the first rather than the last occurrence on the …
Browse files Browse the repository at this point in the history
…rhs of a rule
  • Loading branch information
agraef committed Jun 16, 2015
1 parent a4ca9f2 commit 0d895bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pair.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ int get_pair_mapping(char* config, PAIR* p, int n)
j = get_pair_osc_arg_index(var, argnames, p->argc_in_path + p->argc,k++);
if(j >=0 )
p->midi_map[i] = j;
while(j >=0 )
while(j >=0 && p->osc_map[j] == -1)
{
p->osc_map[j] = i;
//check for additional copies
Expand Down

0 comments on commit 0d895bc

Please sign in to comment.