diff --git a/src/game/object_helpers.c b/src/game/object_helpers.c index 6f7183c5..88bd4fea 100644 --- a/src/game/object_helpers.c +++ b/src/game/object_helpers.c @@ -436,6 +436,8 @@ s32 cur_obj_rotate_yaw_toward(s16 target, s16 increment) { } s16 obj_angle_to_object(struct Object *obj1, struct Object *obj2) { + if (obj1 == NULL || obj2 == NULL) { return 0; } + f32 z1, x1, z2, x2; s16 angle;