summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/LinearMath/btConvexHull.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/LinearMath/btConvexHull.cpp b/src/LinearMath/btConvexHull.cpp
index e7de2a369..94b68baf5 100644
--- a/src/LinearMath/btConvexHull.cpp
+++ b/src/LinearMath/btConvexHull.cpp
@@ -678,7 +678,9 @@ HullError HullLibrary::CreateConvexHull(const HullDesc &desc, // describes the
if (vcount < 8) vcount = 8;
btAlignedObjectArray<btVector3> vertexSource;
- vertexSource.resize(static_cast<int>(vcount));
+ btVector3 zero;
+ zero.setZero();
+ vertexSource.resize(static_cast<int>(vcount), zero);
btVector3 scale;