mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 21:45:12 +00:00
Fix crash in bhv_mario_update()
This commit is contained in:
parent
afe1ff937b
commit
a555a40bcf
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue