aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Machine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Machine.cpp')
-rw-r--r--src/engine/Machine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/Machine.cpp b/src/engine/Machine.cpp
index 99dd93e..4106a98 100644
--- a/src/engine/Machine.cpp
+++ b/src/engine/Machine.cpp
@@ -349,7 +349,7 @@ Machine::run(const Raul::TimeSlice& time)
break;
// Earliest active state ends this cycle
- } else if (earliest->exit_time() <= cycle_end) {
+ } else if (time.beats_to_ticks(earliest->exit_time()) <= cycle_end) {
this_time += earliest->exit_time() - _time;
_time = time.ticks_to_beats(
time.beats_to_ticks(earliest->exit_time()));