mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
Fix crash in geo_process_node_and_siblings()
This commit is contained in:
parent
8abae8d26b
commit
91b26646e0
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue