bullet: fix deadlock in get_manifold
This commit is contained in:
parent
fc172f8918
commit
e6e39cce0e
|
|
@ -1052,7 +1052,7 @@ BulletPersistentManifold *BulletWorld::
|
|||
get_manifold(int idx) const {
|
||||
LightMutexHolder holder(get_global_lock());
|
||||
|
||||
nassertr(idx < get_num_manifolds(), NULL);
|
||||
nassertr(idx < _dispatcher->getNumManifolds(), NULL);
|
||||
|
||||
btPersistentManifold *ptr = _dispatcher->getManifoldByIndexInternal(idx);
|
||||
return (ptr) ? new BulletPersistentManifold(ptr) : NULL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue