Skip to content

Commit d93d56e

Browse files
remove redundant setting of object_host
1 parent d226532 commit d93d56e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

code/camera/camera.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ void camera::set_fov(fov_t in_fov, float in_fov_time, float in_fov_acceleration_
156156

157157
void camera::set_object_host(object *objp, int n_object_host_submodel)
158158
{
159-
if(objp == NULL)
160-
object_host = object_h();
161-
162159
object_host = object_h(objp);
163160
object_host_submodel = n_object_host_submodel;
164161
set_custom_position_function(NULL);

0 commit comments

Comments
 (0)