summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ix2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ix2.c b/src/ix2.c
index 28c4c11..04513e1 100644
--- a/src/ix2.c
+++ b/src/ix2.c
@@ -426,7 +426,7 @@ ix2_object_t * ix2_insert_object(ix2_t *ix2, aabb_t *object_aabb, void *object)
o->aabb_len_sq = aabb_len_sq(object_aabb);
if (!aabb_overlap(&ix2->aabb, object_aabb))
- return object;
+ return o;
return add_object(ix2, &depth, &ix2->root, &ix2->aabb, o, NULL);
}
© All Rights Reserved