Преглед изворни кода

try to defend against hard crashes

David Rose пре 19 година
родитељ
комит
89950a2132
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      panda/src/pgraph/nodePath.I

+ 1 - 1
panda/src/pgraph/nodePath.I

@@ -384,7 +384,7 @@ get_num_children(Thread *current_thread) const {
 ////////////////////////////////////////////////////////////////////
 INLINE NodePath NodePath::
 get_child(int n, Thread *current_thread) const {
-  nassertr(n >= 0 && n < get_num_children(current_thread), NodePath());
+  nassertr_always(n >= 0 && n < get_num_children(current_thread), NodePath());
   NodePath child;
   int pipeline_stage = current_thread->get_pipeline_stage();
   child._head = PandaNode::get_component(_head, _head->get_node()->get_child(n, current_thread),