Skip to content
Snippets Groups Projects
Commit 957c1823 authored by Adrian Knobloch's avatar Adrian Knobloch
Browse files

Fix uninitialized memory in BoundingBox

This caused exploding robots and segfaults when starting the simulation
parent 22c70bd2
No related branches found
No related tags found
No related merge requests found
......@@ -36,11 +36,8 @@ namespace VirtualRobot
BoundingBox::BoundingBox(const std::vector< Eigen::Vector3f >& p)
{
if (p.size() == 0)
{
clear();
}
else
clear();
if (p.size() != 0)
{
addPoints(p);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment