From 28ddf4c3e52adc77d56b0c2e1c6ee00d95cb6f4f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 5 Apr 2011 14:09:50 +0200 Subject: Add test for num_reflections() and fix it --- src/reflist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/reflist.c') diff --git a/src/reflist.c b/src/reflist.c index 36753bd5..e420b736 100644 --- a/src/reflist.c +++ b/src/reflist.c @@ -775,7 +775,7 @@ static int recursive_count(Reflection *refl) { int count_left, count_right; - if ( refl == NULL ) return 1; + if ( refl == NULL ) return 0; count_left = recursive_count(refl->child[0]); count_right = recursive_count(refl->child[1]); -- cgit v1.2.3