diff --git a/src/algorithms/tracking/libs/exponential_smoother.cc b/src/algorithms/tracking/libs/exponential_smoother.cc index aa83a494e..9bc32347c 100644 --- a/src/algorithms/tracking/libs/exponential_smoother.cc +++ b/src/algorithms/tracking/libs/exponential_smoother.cc @@ -76,7 +76,7 @@ void Exponential_Smoother::set_samples_for_initialization(int num_samples) { ns = 1; } - samples_for_initialization_ = num_samples; + samples_for_initialization_ = ns; init_buffer_.reserve(samples_for_initialization_); }