Skip to content

Commit ecd9d5f

Browse files
authored
Merge branch 'master' into master
2 parents fa4341c + 5fa06c6 commit ecd9d5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: include/patchworkpp/patchworkpp.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1021,8 +1021,7 @@ template<typename PointT> inline
10211021
void PatchWorkpp<PointT>::pc2czm(const pcl::PointCloud<PointT> &src, std::vector<Zone> &czm, pcl::PointCloud<PointT> &cloud_nonground) {
10221022

10231023
for (int i=0; i<src.size(); i++) {
1024-
1025-
if (i == noise_idxs_.front()) {
1024+
if ((!noise_idxs_.empty()) &&(i == noise_idxs_.front())) {
10261025
noise_idxs_.pop();
10271026
continue;
10281027
}

0 commit comments

Comments
 (0)