aboutsummaryrefslogtreecommitdiff
path: root/src/reflist.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-04-05 14:09:50 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:23 +0100
commit28ddf4c3e52adc77d56b0c2e1c6ee00d95cb6f4f (patch)
tree4443016579473938f3e6545f7aa847c59d5360fb /src/reflist.c
parent40ec8624ccd76c574a136603f3dc2fc6683be969 (diff)
Add test for num_reflections() and fix it
Diffstat (limited to 'src/reflist.c')
-rw-r--r--src/reflist.c2
1 files changed, 1 insertions, 1 deletions
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]);