mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 20:11:42 +00:00
Fix crash in is_anim_past_frame()
This commit is contained in:
parent
03c172fa9e
commit
9ffd99473d
1 changed files with 4 additions and 0 deletions
|
|
@ -176,7 +176,11 @@ void set_anim_to_frame(struct MarioState *m, s16 animFrame) {
|
|||
s32 is_anim_past_frame(struct MarioState *m, s16 animFrame) {
|
||||
s32 isPastFrame;
|
||||
s32 acceleratedFrame = animFrame << 0x10;
|
||||
|
||||
if (!m || !m->marioObj) { return TRUE; }
|
||||
struct AnimInfo *animInfo = &m->marioObj->header.gfx.animInfo;
|
||||
|
||||
if (!animInfo->curAnim) { return TRUE; }
|
||||
struct Animation *curAnim = animInfo->curAnim;
|
||||
|
||||
if (animInfo->animAccel) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue