]> git.rm.cloudns.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)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 30 Mar 2011 07:01:20 +0000 (09:01 +0200)
using memset first

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10979 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3bf45a9aeeb979682e3dc01c03c37ebb298fc530

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