Procházet zdrojové kódy

bullet: fix deadlock in get_manifold

rdb před 7 roky
rodič
revize
e6e39cce0e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 {
 get_manifold(int idx) const {
   LightMutexHolder holder(get_global_lock());
   LightMutexHolder holder(get_global_lock());
 
 
-  nassertr(idx < get_num_manifolds(), NULL);
+  nassertr(idx < _dispatcher->getNumManifolds(), NULL);
 
 
   btPersistentManifold *ptr = _dispatcher->getManifoldByIndexInternal(idx);
   btPersistentManifold *ptr = _dispatcher->getManifoldByIndexInternal(idx);
   return (ptr) ? new BulletPersistentManifold(ptr) : NULL;
   return (ptr) ? new BulletPersistentManifold(ptr) : NULL;