Skip to content

Commit

Permalink
Fix a bug in Octree::splat_label()
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-ps committed Sep 5, 2018
1 parent 13d57d1 commit 5dc2240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octree/Octree/Octree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ void Octree::splat_label(const int* labels, const vector<float>& weights,
const vector<int>& children)
{
int n = children.size();
int nl = *std::max_element(labels, labels + n) + 1;
int nl = *std::max_element(labels, labels + weights.size()) + 1;

label_.clear();
label_.resize(n, -1);
Expand Down

0 comments on commit 5dc2240

Please sign in to comment.