From 9cc6ac644970f2bab15bad6ed0443ce0fbef9790 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 5 Mar 2015 11:26:10 +0000 Subject: [PATCH] Fix a coverity false positive. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12200 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index f69ac7b0..50fca599 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -6001,7 +6001,6 @@ void R_Water_AddWaterPlane(msurface_t *surface, int entno) } } planeindex = bestplaneindex; - p = r_fb.water.waterplanes + planeindex; // if this surface does not fit any known plane rendered this frame, add one if (planeindex < 0 || bestplanescore > 0.001f) @@ -6028,6 +6027,7 @@ void R_Water_AddWaterPlane(msurface_t *surface, int entno) else { // merge mins/maxs when we're adding this surface to the plane + p = r_fb.water.waterplanes + planeindex; p->mins[0] = min(p->mins[0], mins[0]); p->mins[1] = min(p->mins[1], mins[1]); p->mins[2] = min(p->mins[2], mins[2]); -- 2.39.2