aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/engine/Machine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/Machine.cpp b/src/engine/Machine.cpp
index 1a9e3ae..3a1283d 100644
--- a/src/engine/Machine.cpp
+++ b/src/engine/Machine.cpp
@@ -167,9 +167,6 @@ Machine::remove_node(SharedPtr<Node> node)
void
Machine::reset(Raul::BeatTime time)
{
- for (size_t i=0; i < MAX_ACTIVE_NODES; ++i)
- _active_nodes.at(i).reset();
-
if (!_is_finished) {
for (Nodes::const_iterator n = _nodes.begin(); n != _nodes.end(); ++n) {
SharedPtr<Node> node = (*n);
@@ -179,6 +176,9 @@ Machine::reset(Raul::BeatTime time)
assert(! node->is_active());
}
+
+ for (size_t i=0; i < MAX_ACTIVE_NODES; ++i)
+ _active_nodes.at(i).reset();
}
_time = 0;