]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - collision.c
make sure collision cache parameter struct is the same every frame by
[xonotic/darkplaces.git] / collision.c
index 21ff73aa4f40cdcd71d048088f72b6cd6e14ff8a..cf0d527f360a424e6d7707382fe12400ee25b081 100644 (file)
@@ -1830,6 +1830,7 @@ static collision_cachedtrace_t *Collision_Cache_Lookup(int type, dp_model_t *mod
        else
        {
                // cached trace lookup
+               memset(&params, 0, sizeof(params));
                params.type = type;
                params.model = model;
                VectorCopy(bodymins, params.bodymins);