Disable collecting segment list in see_object
The segment list is written to `hit_data`, but `hit_data` goes out of scope before the segment list is read back. Skip collecting it, since it was effectively write-only on this path.
This commit is contained in:
parent
33152640bc
commit
f36a8e015e
|
@ -3499,7 +3499,7 @@ static int see_object(fvcobjptridx &vcobjptridx, const vcobjptridx_t objnum)
|
|||
fq.p1 = &objnum->pos;
|
||||
fq.rad = 0;
|
||||
fq.thisobjnum = vcobjptridx(Viewer);
|
||||
fq.flags = FQ_TRANSWALL | FQ_CHECK_OBJS | FQ_GET_SEGLIST;
|
||||
fq.flags = FQ_TRANSWALL | FQ_CHECK_OBJS;
|
||||
fq.startseg = Viewer->segnum;
|
||||
fq.ignore_obj_list.first = nullptr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue