From: divverent Date: Thu, 5 Mar 2015 11:26:10 +0000 (+0000) Subject: Fix a coverity false positive. X-Git-Tag: xonotic-v0.8.1~8^2~3 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=9cc6ac644970f2bab15bad6ed0443ce0fbef9790 Fix a coverity false positive. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12200 d7cf8633-e32d-0410-b094-e92efae38249 --- 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]);