Initialize graphNode->config.camera to NULL (fixes obscure crash)

This commit is contained in:
MysterD 2022-08-07 22:30:31 -07:00
parent a61436b2ca
commit cadaf78699

View file

@ -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) {