Commit b44335e1 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix uninitialized vector

parent 2d93db4f
......@@ -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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment