mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-21 17:41:42 +00:00
Fix crash in obj_angle_to_object
This commit is contained in:
parent
f64cd4b8e2
commit
c902bf2b00
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue