mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 04:01:31 +00:00
Fix nullptr crash in HWWall::BuildFFBlock
This commit is contained in:
parent
ec94204a28
commit
b8146e323c
1 changed files with 2 additions and 2 deletions
|
@ -1658,9 +1658,9 @@ void HWWall::BuildFFBlock(HWDrawInfo *di, FRenderState& state, seg_t * seg, F3DF
|
|||
|
||||
lightmap = nullptr;
|
||||
if (seg->sidedef == seg->linedef->sidedef[0])
|
||||
lightmap = seg->linedef->sidedef[1]->lightmap[4 + roverIndex];
|
||||
lightmap = seg->linedef->sidedef[1]->lightmap ? seg->linedef->sidedef[1]->lightmap[4 + roverIndex] : nullptr;
|
||||
else
|
||||
lightmap = seg->linedef->sidedef[0]->lightmap[4 + roverIndex];
|
||||
lightmap = seg->linedef->sidedef[0]->lightmap ? seg->linedef->sidedef[0]->lightmap[4 + roverIndex] : nullptr;
|
||||
|
||||
if (rover->flags&FF_FOG)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue