From d73216a8993c6a822b99f11e634c3a3bdbd322b9 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 23 Apr 2022 01:12:12 -0700 Subject: [PATCH] Fixed rare crash in geo_process_node_and_siblings --- src/game/rendering_graph_node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/rendering_graph_node.c b/src/game/rendering_graph_node.c index 8ec082a7..692eec1d 100644 --- a/src/game/rendering_graph_node.c +++ b/src/game/rendering_graph_node.c @@ -1430,7 +1430,7 @@ void geo_process_node_and_siblings(struct GraphNode *firstNode) { ((struct GraphNodeObject *) curGraphNode)->throwMatrix = NULL; } } - } while (iterateChildren && (curGraphNode = curGraphNode->next) != firstNode); + } while (iterateChildren && curGraphNode && (curGraphNode = curGraphNode->next) != firstNode); } /**