From b4f3720ff1521c7d000731e9a5263c972e633b20 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 25 Jul 2019 21:37:57 +0200 Subject: [PATCH] Fix guard --- src/algorithms/tracking/libs/exponential_smoother.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_); }