diff --git a/panda/src/pgraph/nodePath.I b/panda/src/pgraph/nodePath.I index 95bf5a6c1a..1f2952198d 100644 --- a/panda/src/pgraph/nodePath.I +++ b/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),