- fix null pointer crash in softpoly

This commit is contained in:
Magnus Norddahl 2018-06-05 22:42:21 +02:00
parent 2baed338f7
commit 61f379c88f

View file

@ -108,7 +108,7 @@ bool RenderPolyWall::RenderLine(PolyRenderThread *thread, seg_t *line, sector_t
return true;
}
}
else if (line->PartnerSeg)
else if (line->PartnerSeg && line->PartnerSeg->Subsector)
{
PolyTransferHeights fakeback(line->PartnerSeg->Subsector);
sector_t *backsector = fakeback.FrontSector;