From da13adf72cf665e1ba9aa7624996e1d8ef4abc3e Mon Sep 17 00:00:00 2001 From: Baconator2558 <77943363+Baconator2558@users.noreply.github.com> Date: Sat, 30 Aug 2025 14:49:02 -0500 Subject: [PATCH] Fix obj_init_animation (#936) * Fix obj_init_animation * Update object_helpers.c --- src/game/object_helpers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/object_helpers.c b/src/game/object_helpers.c index 14269b2d5..6c7efd76c 100644 --- a/src/game/object_helpers.c +++ b/src/game/object_helpers.c @@ -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; -} \ No newline at end of file +}