diff --git a/pattern.py b/pattern.py index 8dd317f..4b24130 100644 --- a/pattern.py +++ b/pattern.py @@ -124,7 +124,7 @@ def pat(index, tick, previous_values): if 'args' in this.pattern[i]['instruction']: args = this.pattern[i]['instruction']['args'] if this.instructions[name] != None: - jump = apply(index, targets, args, this.instructions[name]) + jump = apply(i, targets, args, this.instructions[name]) if jump != i and jump < len(this.pattern) - 1: i = jump - 1 r = this.values["r"]