From d5ddc9eadb5006c73470011c01290910690431b8 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Fri, 3 Sep 2010 05:18:36 +0000 Subject: Fix [#23569] Convex hull bounds crash Blender Reported by dobz116 This appears to happen only on 64bit Windows. An issue for this part of code was reported at http://code.google.com/p/bullet/issues/detail?id=204 and fixed at http://code.google.com/p/bullet/source/detail?r=1650 . The code change also fixes the crash we experience: merged changes. --- .../src/BulletCollision/CollisionShapes/btConvexHullShape.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'extern/bullet2/src') diff --git a/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp b/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp index 2b067367767..7b45fad12df 100644 --- a/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp +++ b/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp @@ -24,12 +24,13 @@ btConvexHullShape ::btConvexHullShape (const btScalar* points,int numPoints,int m_shapeType = CONVEX_HULL_SHAPE_PROXYTYPE; m_unscaledPoints.resize(numPoints); - unsigned char* pointsBaseAddress = (unsigned char*)points; + unsigned char* pointsAddress = (unsigned char*)points; for (int i=0;i