mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 00:40:56 +00:00
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:
parent
171226c7ac
commit
9f280bcaf2
1 changed files with 1 additions and 1 deletions
|
@ -5610,7 +5610,7 @@ static void polymer_invalidateplanelights(_prplane* plane)
|
||||||
|
|
||||||
while (i--)
|
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;
|
prlights[plane->lights[i]].flags.invalidate = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue