add copy constructor for btAlignedObjectArray, to avoid crashes as reported by JamesH
http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?p=11600#p11600
This commit is contained in:
@@ -120,6 +120,19 @@ class btAlignedObjectArray
|
||||
clear();
|
||||
}
|
||||
|
||||
btAlignedObjectArray(const btAlignedObjectArray& otherArray)
|
||||
{
|
||||
init();
|
||||
|
||||
int otherSize = otherArray.size();
|
||||
resize (otherSize);
|
||||
int i;
|
||||
for (i=0;i<otherSize;i++)
|
||||
{
|
||||
m_data[i] = otherArray[i];
|
||||
}
|
||||
}
|
||||
|
||||
SIMD_FORCE_INLINE int capacity() const
|
||||
{ // return current length of allocated storage
|
||||
return m_capacity;
|
||||
|
||||
Reference in New Issue
Block a user