- fixed bad index variable in R_RenderFakeWallRange.

This commit is contained in:
Christoph Oelckers 2013-08-11 12:41:14 +02:00
parent 1acbe17876
commit c7a46492eb
1 changed files with 1 additions and 1 deletions

View File

@ -828,7 +828,7 @@ void R_RenderFakeWallRange (drawseg_t *ds, int x1, int x2)
{
if (sclipTop <= backsector->e->XFloor.lightlist[j].plane.Zat0())
{
lightlist_t *lit = &backsector->e->XFloor.lightlist[i];
lightlist_t *lit = &backsector->e->XFloor.lightlist[j];
basecolormap = lit->extra_colormap;
wallshade = LIGHT2SHADE(curline->sidedef->GetLightLevel(foggy, *lit->p_lightlevel, lit->lightsource == NULL) + r_actualextralight);
break;