From b1e6f9a0bcaf5c544feef88b85ff6fada5b6fcd7 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 5 Mar 2015 10:48:34 +0000 Subject: [PATCH] Coverity fix. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12195 d7cf8633-e32d-0410-b094-e92efae38249 --- csprogs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csprogs.c b/csprogs.c index 77b0daeb..64e21e68 100644 --- a/csprogs.c +++ b/csprogs.c @@ -1221,7 +1221,7 @@ qboolean CL_VM_TransformView(int entnum, matrix4x4_t *viewmatrix, mplane_t *clip if(PRVM_clientedictfunction(ed, camera_transform)) { ret = true; - if(viewmatrix || clipplane || visorigin) + if(viewmatrix && clipplane && visorigin) { Matrix4x4_ToVectors(viewmatrix, forward, left, up, origin); AnglesFromVectors(ang, forward, up, false); -- 2.39.2