avoid array out-of-bounds access
This commit is contained in:
@@ -91,7 +91,7 @@ public:
|
||||
|
||||
btPersistentManifold** getInternalManifoldPointer()
|
||||
{
|
||||
return &m_manifoldsPtr[0];
|
||||
return m_manifoldsPtr.size()? &m_manifoldsPtr[0] : 0;
|
||||
}
|
||||
|
||||
btPersistentManifold* getManifoldByIndexInternal(int index)
|
||||
|
||||
Reference in New Issue
Block a user