diff options
Diffstat (limited to 'thirdparty/bullet/Bullet3Common/b3AlignedObjectArray.h')
-rw-r--r-- | thirdparty/bullet/Bullet3Common/b3AlignedObjectArray.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/thirdparty/bullet/Bullet3Common/b3AlignedObjectArray.h b/thirdparty/bullet/Bullet3Common/b3AlignedObjectArray.h index 947362d08e..ef71016565 100644 --- a/thirdparty/bullet/Bullet3Common/b3AlignedObjectArray.h +++ b/thirdparty/bullet/Bullet3Common/b3AlignedObjectArray.h @@ -528,6 +528,14 @@ protected: otherArray.copy(0, otherSize, m_data); } + void removeAtIndex(int index) + { + if (index<size()) + { + swap( index,size()-1); + pop_back(); + } + } }; #endif //B3_OBJECT_ARRAY__ |