Browse Source

bullet: fix deadlock in get_manifold

rdb 7 years ago
parent
commit
e6e39cce0e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/bullet/bulletWorld.cxx

+ 1 - 1
panda/src/bullet/bulletWorld.cxx

@@ -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;