mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 22:01:33 +00:00
make sure trace.fraction is initialized
This commit is contained in:
parent
c3bb363fb6
commit
deadb4d9bc
1 changed files with 1 additions and 0 deletions
|
@ -685,6 +685,7 @@ TraceLine (vec3_t start, vec3_t end, vec3_t impact)
|
|||
trace_t trace;
|
||||
|
||||
memset (&trace, 0, sizeof (trace));
|
||||
trace.fraction = 1;
|
||||
MOD_TraceLine (cl.worldmodel->hulls, 0, start, end, &trace);
|
||||
|
||||
VectorCopy (trace.endpos, impact);
|
||||
|
|
Loading…
Reference in a new issue