polymer.c: remove redundant NULL pointer check in polymer_invalidateplanelights().

Redundant for the same reason as the preceding one: the pointer has already
been dereferenced at the point the check is made. Also, all 5 calls of that
function pass a valid pointer (provided the pointers from which the expressions
are derived are valid). Reported by Stack, too.

git-svn-id: https://svn.eduke32.com/eduke32@4017 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-08-12 15:18:22 +00:00
parent 171226c7ac
commit 9f280bcaf2

View file

@ -5610,7 +5610,7 @@ static void polymer_invalidateplanelights(_prplane* plane)
while (i--)
{
if (plane && (plane->lights[i] != -1) && (prlights[plane->lights[i]].flags.active))
if ((plane->lights[i] != -1) && (prlights[plane->lights[i]].flags.active))
prlights[plane->lights[i]].flags.invalidate = 1;
}
}