diff --git a/src/mlpack/core/tree/cover_tree_impl.hpp b/src/mlpack/core/tree/cover_tree_impl.hpp index cbee678ec0..5ed6fcb809 100644 --- a/src/mlpack/core/tree/cover_tree_impl.hpp +++ b/src/mlpack/core/tree/cover_tree_impl.hpp @@ -103,9 +103,10 @@ CoverTree::CoverTree( if (nearSetSize == 1) { size_t childNearSetSize = 0; + size_t childFarSetSize = 0; children.push_back(new CoverTree(dataset, expansionConstant, indices[0], scale - 1, indices, distances, childNearSetSize, - farSetSize, usedSetSize)); + childFarSetSize, usedSetSize)); // And we're done. break;