diff --git a/src/filter/mixtureParticleFilter.cpp b/src/filter/mixtureParticleFilter.cpp index 83170a4..10a30a4 100644 --- a/src/filter/mixtureParticleFilter.cpp +++ b/src/filter/mixtureParticleFilter.cpp @@ -102,15 +102,15 @@ MixtureParticleFilter::MixtureParticleFilter(Mixture * prior, */ bool ret = (dynamic_cast *>(this->_post))->ListOfSamplesSet(prior->ListOfSamplesGet()); assert(ret); - for(int i =0 ; i < prior.NumComponentsGet() ; i++) + for(int i =0 ; i < prior->NumComponentsGet() ; i++) { bool ret = (dynamic_cast *>(this->_post->ComponentGet(i)))->ListOfSamplesSet(prior->ComponentGet(i)->ListOfSamplesGet()); } // Initialise vector of lists of samples - for(int i =0 ; i < prior.NumComponentsGet() ; i++) + for(int i =0 ; i < prior->NumComponentsGet() ; i++) { - _old_samplesVec[i] = (prior.ComponentGet(i)->ListOfSamplesGet()); + _old_samplesVec[i] = (prior->ComponentGet(i)->ListOfSamplesGet()); } _new_samplesVec = _old_samplesVec;