don't crash when running out of pool memory, just use btAlignedAlloc/btAlignedFree instead

This commit is contained in:
ejcoumans
2007-10-19 21:25:58 +00:00
parent c625e756fe
commit 1e4e52306f
2 changed files with 36 additions and 4 deletions

View File

@@ -51,6 +51,11 @@ public:
btAlignedFree( m_pool);
}
int getFreeCount() const
{
return m_freeCount;
}
void* allocate(int size)
{
btAssert(!size || size<=m_elemSize);