diff options
author | erwincoumans <erwin.coumans@gmail.com> | 2022-09-24 20:00:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-24 20:00:36 -0700 |
commit | 2c204c49e56ed15ec5fcfa71d199ab6d6570b3f5 (patch) | |
tree | 20a89bcc2ffcd887b725e4f974829fe704fac487 | |
parent | 327336d80b21c8ea3e05c3efecc5eb84532cf94a (diff) | |
parent | 6626ed1a89e13e0e6f6b5a526e9f97fbb8e67b8f (diff) | |
download | bullet3-2c204c49e56ed15ec5fcfa71d199ab6d6570b3f5.tar.gz |
Merge pull request #4284 from vitalybuka/master3.25
Initialize vertexSource
-rw-r--r-- | src/LinearMath/btConvexHull.cpp | 4 |
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; |