Skip to content

Commit 6ecb94b

Browse files
committed
Adding exceptions (2/N)
1 parent 18a613f commit 6ecb94b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/src/openni_mobile_server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ CopyPointCloudToBuffers(const pcl::PointCloud<pcl::PointXYZRGBA>::ConstPtr& clou
6262
{
6363
const std::size_t nr_points = cloud->points.size();
6464

65-
cloud_buffers.resize(nr_points * 3);
65+
cloud_buffers.points.resize(nr_points * 3);
6666
cloud_buffers.rgb.resize(nr_points * 3);
6767

6868
const pcl::PointXYZ bounds_min(-0.9f, -0.8f, 1.0f);
@@ -93,7 +93,7 @@ CopyPointCloudToBuffers(const pcl::PointCloud<pcl::PointXYZRGBA>::ConstPtr& clou
9393
j++;
9494
}
9595

96-
cloud_buffers.resize(j * 3);
96+
cloud_buffers.points.resize(j * 3);
9797
cloud_buffers.rgb.resize(j * 3);
9898
}
9999

0 commit comments

Comments
 (0)