diff options
author | David Robillard <d@drobilla.net> | 2007-12-07 15:04:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-12-07 15:04:27 +0000 |
commit | 885af895243b43220b1e99f1d3b2bebcc2ec6398 (patch) | |
tree | b4b15bc3c331c1092d6e8df209b8b7ee4a84fd8d | |
parent | 273517a83b9e04e15b07fa1f64c76b10af7c3091 (diff) | |
download | machina-885af895243b43220b1e99f1d3b2bebcc2ec6398.tar.gz machina-885af895243b43220b1e99f1d3b2bebcc2ec6398.tar.bz2 machina-885af895243b43220b1e99f1d3b2bebcc2ec6398.zip |
Possible bug fix maybe possibly but probably not.
git-svn-id: http://svn.drobilla.net/lad/machina@962 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/engine/Machine.cpp | 6 |
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; |