Fix crash in geo_switch_mario_cap_on_off
This commit is contained in:
parent
7a71c9c284
commit
059842b600
|
@ -652,6 +652,7 @@ Gfx* geo_switch_mario_cap_on_off(s32 callContext, struct GraphNode* node, UNUSED
|
|||
struct MarioBodyState* bodyState = geo_get_body_state();
|
||||
|
||||
if (callContext == GEO_CONTEXT_RENDER) {
|
||||
if (switchCase == NULL || bodyState == NULL) { return NULL; }
|
||||
switchCase->selectedCase = bodyState->capState & 1;
|
||||
while (next != node) {
|
||||
if (next->type == GRAPH_NODE_TYPE_TRANSLATION_ROTATION) {
|
||||
|
|
Loading…
Reference in New Issue