make sure trace.fraction is initialized

This commit is contained in:
Bill Currie 2007-02-09 09:29:46 +00:00 committed by Jeff Teunissen
parent c3bb363fb6
commit deadb4d9bc

View file

@ -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);