summaryrefslogtreecommitdiffstats
path: root/libdimension/tests/prtree.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-05-16 23:25:53 -0600
committerTavian Barnes <tavianator@gmail.com>2011-05-16 23:25:53 -0600
commitd374841194f24c7cb1cdc52fc631fcb2982af358 (patch)
treefa92504fb50c6a4195317dad653ed3ab72fa6f27 /libdimension/tests/prtree.c
parent719fea8f97320814835408fad6ce2a4647674c11 (diff)
downloaddimension-d374841194f24c7cb1cdc52fc631fcb2982af358.tar.xz
Add a refcount to objects.
Diffstat (limited to 'libdimension/tests/prtree.c')
-rw-r--r--libdimension/tests/prtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/tests/prtree.c b/libdimension/tests/prtree.c
index cb36153..86aaa4e 100644
--- a/libdimension/tests/prtree.c
+++ b/libdimension/tests/prtree.c
@@ -69,7 +69,7 @@ main(void)
dmnsn_randomize_bounding_box(object);
object->intersection_fn = dmnsn_fake_intersection_fn;
dmnsn_initialize_object(object);
- dmnsn_array_push(scene->objects, &object);
+ dmnsn_scene_add_object(scene, object);
}
dmnsn_prtree *prtree = dmnsn_new_prtree(scene->objects);