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

This commit is contained in:
MysterD 2022-08-07 22:30:31 -07:00
parent 29b5ef0ef6
commit 7cce6449aa
1 changed files with 1 additions and 0 deletions

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