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); } /**