Explorar o código

bullet: fix BulletSoftBodyNode::get_node deadlock

rdb %!s(int64=7) %!d(string=hai) anos
pai
achega
3653413cd4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      panda/src/bullet/bulletSoftBodyNode.cxx

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

@@ -134,7 +134,7 @@ BulletSoftBodyNodeElement BulletSoftBodyNode::
 get_node(int idx) const {
   LightMutexHolder holder(BulletWorld::get_global_lock());
 
-  nassertr(idx >=0 && idx < get_num_nodes(), BulletSoftBodyNodeElement::empty());
+  nassertr(idx >= 0 && idx < _soft->m_nodes.size(), BulletSoftBodyNodeElement::empty());
   return BulletSoftBodyNodeElement(_soft->m_nodes[idx]);
 }