From 7e93be739bac604020916784f4075f9e113096f7 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Sun, 30 Nov 2008 16:47:36 +0000 Subject: [PATCH] add copy constructor for btAlignedObjectArray, to avoid crashes as reported by JamesH http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?p=11600#p11600 --- src/LinearMath/btAlignedObjectArray.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/LinearMath/btAlignedObjectArray.h b/src/LinearMath/btAlignedObjectArray.h index ba52e2932..afcc5da9d 100644 --- a/src/LinearMath/btAlignedObjectArray.h +++ b/src/LinearMath/btAlignedObjectArray.h @@ -120,6 +120,19 @@ class btAlignedObjectArray clear(); } + btAlignedObjectArray(const btAlignedObjectArray& otherArray) + { + init(); + + int otherSize = otherArray.size(); + resize (otherSize); + int i; + for (i=0;i