From: havoc Date: Mon, 28 Mar 2011 11:48:21 +0000 (+0000) Subject: make sure collision cache parameter struct is the same every frame by X-Git-Tag: xonotic-v0.5.0~347 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=62d54418a3e599164514a81e8a5f62c997746a39;p=xonotic%2Fdarkplaces.git make sure collision cache parameter struct is the same every frame by using memset first git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10979 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=3bf45a9aeeb979682e3dc01c03c37ebb298fc530 --- diff --git a/collision.c b/collision.c index 21ff73aa..cf0d527f 100644 --- a/collision.c +++ b/collision.c @@ -1830,6 +1830,7 @@ static collision_cachedtrace_t *Collision_Cache_Lookup(int type, dp_model_t *mod else { // cached trace lookup + memset(¶ms, 0, sizeof(params)); params.type = type; params.model = model; VectorCopy(bodymins, params.bodymins);