Skip to content
Snippets Groups Projects
Commit b44335e1 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix uninitialized vector

parent 2d93db4f
No related merge requests found
......@@ -195,7 +195,7 @@ public:
Vec3f computeCOM() const
{
FCL_REAL vol = 0;
Vec3f com;
Vec3f com(0,0,0);
for(int i = 0; i < num_tris; ++i)
{
const Triangle& tri = tri_indices[i];
......
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