Fix crash in bhv_mario_update()
This commit is contained in:
parent
2c349e66db
commit
2412056ab1
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue