mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-01-07 07:22:49 +00:00
Fix obj_init_animation (#936)
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
* Fix obj_init_animation * Update object_helpers.c
This commit is contained in:
parent
cee5957e11
commit
da13adf72c
1 changed files with 3 additions and 3 deletions
|
|
@ -810,8 +810,8 @@ void obj_set_gfx_pos_from_pos(struct Object *obj) {
|
|||
}
|
||||
|
||||
void obj_init_animation(struct Object *obj, s32 animIndex) {
|
||||
if (!o || !obj) { return; }
|
||||
struct AnimationTable *animations = o->oAnimations;
|
||||
if (!obj) { return; }
|
||||
struct AnimationTable *animations = obj->oAnimations;
|
||||
if (animations && (u32)animIndex < animations->count) {
|
||||
geo_obj_init_animation(&obj->header.gfx, animations->anims[animIndex]);
|
||||
}
|
||||
|
|
@ -3500,4 +3500,4 @@ s32 get_trajectory_length(Trajectory* trajectory) {
|
|||
c += 4;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue