From acdcdd3df8c3aa9c1a843d9dd4be85a18147b1bc Mon Sep 17 00:00:00 2001 From: MysterD Date: Mon, 14 Feb 2022 18:15:54 -0800 Subject: [PATCH] Fix crash in geo_process_node_and_siblings() --- src/game/rendering_graph_node.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/rendering_graph_node.c b/src/game/rendering_graph_node.c index 1ef61d39..a844624f 100644 --- a/src/game/rendering_graph_node.c +++ b/src/game/rendering_graph_node.c @@ -1345,6 +1345,11 @@ void geo_process_node_and_siblings(struct GraphNode *firstNode) { iterateChildren = (parent->type != GRAPH_NODE_TYPE_SWITCH_CASE); } + // sanity check + if (firstNode == NULL) { + return; + } + do { if (curGraphNode->flags & GRAPH_RENDER_ACTIVE) { if (curGraphNode->flags & GRAPH_RENDER_CHILDREN_FIRST) {