aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/machina/LearnRequest.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/machina/LearnRequest.hpp')
-rw-r--r--src/engine/machina/LearnRequest.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/engine/machina/LearnRequest.hpp b/src/engine/machina/LearnRequest.hpp
index 4ec22ff..f6bc60f 100644
--- a/src/engine/machina/LearnRequest.hpp
+++ b/src/engine/machina/LearnRequest.hpp
@@ -58,9 +58,11 @@ private:
LearnRequest(SharedPtr<Raul::Maid> maid, SharedPtr<Node> node)
: _started(false)
, _node(node)
- , _enter_action(MidiAction::create(maid, 4, NULL))
- , _exit_action(MidiAction::create(maid, 4, NULL))
+ , _enter_action(new MidiAction(4, NULL))
+ , _exit_action(new MidiAction(4, NULL))
{
+ maid->manage(_enter_action);
+ maid->manage(_exit_action);
}
bool _started;