summaryrefslogtreecommitdiff
path: root/src/import/import_node.test.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-09-26 20:10:54 -0500
committersanine <sanine.not@pm.me>2022-09-26 20:10:54 -0500
commit59b70e473e994d3efaa33f7a9e1e934fb3a8ca8b (patch)
tree70f8e788545f9b1c3156d7e15a4effdab09d56ce /src/import/import_node.test.c
parent60732c9489c89df2057b7f981253447eb7ccee63 (diff)
fix memory overflow bug in test_node_push and add import_scene.test.c
Diffstat (limited to 'src/import/import_node.test.c')
-rw-r--r--src/import/import_node.test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/import/import_node.test.c b/src/import/import_node.test.c
index 7c498a8..fed3125 100644
--- a/src/import/import_node.test.c
+++ b/src/import/import_node.test.c
@@ -42,6 +42,7 @@ void test_push_node()
struct aiNode nodeC;
struct aiNode *a_children[] = { &nodeC };
nodeA.mChildren = a_children;
+ nodeA.mNumChildren = 1;
nodeC.mMeshes = meshes + 7;
nodeC.mNumMeshes = 1;
nodeC.mChildren = NULL;