mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- fix null pointer crash
This commit is contained in:
parent
22422635a0
commit
43c30ff485
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ bool PolyCull::IsSolidLine(seg_t *line)
|
|||
if (!line->backsector) return true;
|
||||
|
||||
// Portal
|
||||
if (line->linedef->isVisualPortal() && line->sidedef == line->linedef->sidedef[0]) return true;
|
||||
if (line->linedef && line->linedef->isVisualPortal() && line->sidedef == line->linedef->sidedef[0]) return true;
|
||||
|
||||
double frontCeilingZ1 = line->frontsector->ceilingplane.ZatPoint(line->v1);
|
||||
double frontFloorZ1 = line->frontsector->floorplane.ZatPoint(line->v1);
|
||||
|
|
Loading…
Reference in a new issue