]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix uninitialized gunangles.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 Mar 2015 17:30:12 +0000 (17:30 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 Mar 2015 17:30:12 +0000 (17:30 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12185 d7cf8633-e32d-0410-b094-e92efae38249

view.c

diff --git a/view.c b/view.c
index ac9c5f21a55b72506a415996857d8c1fc4008c62..fef4c4cb27611b5782ac04435590b6b95a468a85 100644 (file)
--- 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;