From: divverent Date: Wed, 4 Mar 2015 17:30:12 +0000 (+0000) Subject: Fix uninitialized gunangles. X-Git-Tag: xonotic-v0.8.1~8^2~18 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=957c6063431c1baecc296a5f67fab4583ecd01d7;p=xonotic%2Fdarkplaces.git Fix uninitialized gunangles. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12185 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/view.c b/view.c index ac9c5f21..fef4c4cb 100644 --- a/view.c +++ b/view.c @@ -493,6 +493,7 @@ void V_CalcRefdefUsing (const matrix4x4_t *entrendermatrix, const vec3_t clviewa cl.oldonground = clonground; cl.calcrefdef_prevtime = max(cl.calcrefdef_prevtime, cl.oldtime); + VectorClear(gunangles); VectorClear(gunorg); viewmodelmatrix_nobob = identitymatrix; viewmodelmatrix_withbob = identitymatrix;