Skip to content

Commit

Permalink
Fixes #2 by correcting fencepost error in P.RM
Browse files Browse the repository at this point in the history
  • Loading branch information
burnsauce committed Sep 12, 2017
1 parent 3a8727c commit ad4a327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ops/patterns.c
Expand Up @@ -576,7 +576,7 @@ static void op_P_RM_get(const void *NOTUSED(data), scene_state_t *ss,
exec_state_t *NOTUSED(es), command_state_t *cs) {
int16_t pn = ss->variables.p_n;
int16_t a = cs_pop(cs);
cs_push(cs, p_rm_get(ss, pn, a));
cs_push(cs, p_rm_get(ss, pn, a - 1)); // a is 1-indexed
tele_pattern_updated();
}

Expand Down

0 comments on commit ad4a327

Please sign in to comment.