From a555a40bcf109e32d20b21eb19358b29bd936a54 Mon Sep 17 00:00:00 2001 From: MysterD Date: Mon, 1 May 2023 17:03:01 -0700 Subject: [PATCH] Fix crash in bhv_mario_update() --- src/game/object_list_processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/object_list_processor.c b/src/game/object_list_processor.c index 7d0015bf8..aff4bcf64 100644 --- a/src/game/object_list_processor.c +++ b/src/game/object_list_processor.c @@ -279,7 +279,7 @@ void bhv_mario_update(void) { // sanity check torsoPos, it isn't updated off-screen otherwise extern u32 gGlobalTimer; - if (gMarioState->marioBodyState->updateTorsoTime != (gGlobalTimer - 1)) { + if (gMarioState->marioBodyState && gMarioState->marioBodyState->updateTorsoTime != (gGlobalTimer - 1)) { vec3f_copy(gMarioState->marioBodyState->torsoPos, gMarioState->pos); }