goat3d
diff src/node.cc @ 64:99715321ad6d
merged
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 17 Apr 2014 08:53:42 +0300 |
parents | dad392c710df ca549434dc95 |
children | 76dea247f75c |
line diff
1.1 --- a/src/node.cc Thu Apr 17 08:50:36 2014 +0300 1.2 +++ b/src/node.cc Thu Apr 17 08:53:42 2014 +0300 1.3 @@ -43,6 +43,8 @@ 1.4 1.5 void g3dimpl::delete_node_tree(Node *n) 1.6 { 1.7 + if(!n) return; 1.8 + 1.9 for(int i=0; i<n->get_children_count(); i++) { 1.10 delete_node_tree((Node*)n->get_child(i)); 1.11 }