From 476983d98685268cbd935afb76cbe095a47a9239 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 30 Mar 2008 20:19:23 +0000 Subject: [PATCH] use track as parent, correct initialization of m_enabledModel which fixes crashes on model-updates git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@816 0778d3d1-df1d-0410-868b-ea421aaaa00d --- src/core/effect_chain.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/effect_chain.cpp b/src/core/effect_chain.cpp index 0ddb236eb..a51519923 100644 --- a/src/core/effect_chain.cpp +++ b/src/core/effect_chain.cpp @@ -29,14 +29,15 @@ #include "effect_chain.h" #include "engine.h" #include "automatable_model_templates.h" +#include "track.h" effectChain::effectChain( track * _track ) : - model( /*_track*/ NULL ), + model( _track ), m_track( _track ), - m_enabledModel( FALSE, FALSE, TRUE ) + m_enabledModel( FALSE ) { }