Skip to content

Commit

Permalink
fixed illegal pointer access (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
troizky authored and rhaschke committed Aug 20, 2018
1 parent 5dfd143 commit 037d99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moveit_core/collision_detection_fcl/src/collision_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,8 @@ bool distanceCallback(fcl::CollisionObject* o1, fcl::CollisionObject* o2, void*
dist_result.distance = fcl_result.min_distance;
dist_result.nearest_points[0] = Eigen::Vector3d(fcl_result.nearest_points[0].data.vs);
dist_result.nearest_points[1] = Eigen::Vector3d(fcl_result.nearest_points[1].data.vs);
dist_result.link_names[0] = cd1->ptr.obj->id_;
dist_result.link_names[1] = cd2->ptr.obj->id_;
dist_result.link_names[0] = cd1->getID();
dist_result.link_names[1] = cd2->getID();
dist_result.body_types[0] = cd1->type;
dist_result.body_types[1] = cd2->type;
if (cdata->req->enable_nearest_points)
Expand Down

0 comments on commit 037d99c

Please sign in to comment.