From 89950a21326b3745cf3c5a07797ebf509a193a26 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 16 Mar 2007 15:43:17 +0000 Subject: [PATCH] try to defend against hard crashes --- panda/src/pgraph/nodePath.I | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),