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 +}