aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/Machine.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/engine/Machine.cpp b/src/engine/Machine.cpp
index 476e3d1..dbb212c 100644
--- a/src/engine/Machine.cpp
+++ b/src/engine/Machine.cpp
@@ -130,13 +130,14 @@ Machine::run(FrameCount nframes)
bool entered = false;
if ( ! _nodes.empty()) {
for (Nodes::const_iterator n = _nodes.begin(); n != _nodes.end(); ++n) {
+
+ assert( ! (*n)->is_active());
+
if ((*n)->is_initial()) {
(*n)->enter(0);
entered = true;
- } else {
- if ((*n)->is_active())
- (*n)->exit(0);
}
+
}
}
if (!entered) {