]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
make sure collision cache parameter struct is the same every frame by
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Mar 2011 11:48:21 +0000 (11:48 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Mar 2011 11:48:21 +0000 (11:48 +0000)
using memset first

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10979 d7cf8633-e32d-0410-b094-e92efae38249

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