Skip to content

Commit 83533e9

Browse files
fixes #149
1 parent f5c8838 commit 83533e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ops/patterns.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ static void op_P_RM_get(const void *NOTUSED(data), scene_state_t *ss,
577577
exec_state_t *NOTUSED(es), command_state_t *cs) {
578578
int16_t pn = ss->variables.p_n;
579579
int16_t a = cs_pop(cs);
580-
cs_push(cs, p_rm_get(ss, pn, a - 1)); // a is 1-indexed
580+
cs_push(cs, p_rm_get(ss, pn, a));
581581
tele_pattern_updated();
582582
}
583583

0 commit comments

Comments
 (0)