From cadaf78699799b79997bc96c553eee84b720bf7a Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 7 Aug 2022 22:30:31 -0700 Subject: [PATCH] Initialize graphNode->config.camera to NULL (fixes obscure crash) --- src/engine/graph_node.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/graph_node.c b/src/engine/graph_node.c index ce913394..0af6661f 100644 --- a/src/engine/graph_node.c +++ b/src/engine/graph_node.c @@ -193,6 +193,7 @@ struct GraphNodeCamera *init_graph_node_camera(struct AllocOnlyPool *pool, f32 *focus, GraphNodeFunc func, s32 mode) { if (pool != NULL) { graphNode = alloc_only_pool_alloc(pool, sizeof(struct GraphNodeCamera)); + graphNode->config.camera = NULL; } if (graphNode != NULL) {