mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 11:40:44 +00:00
- do not crash on badly defined walls where the end point is missing.
This commit is contained in:
parent
585f841f96
commit
6dcd7e2557
1 changed files with 1 additions and 0 deletions
|
@ -346,6 +346,7 @@ bool SectorGeometry::MakeVertices2(unsigned int secnum, int plane, const FVector
|
|||
for (int i = 0; i < numvertices; i++)
|
||||
{
|
||||
auto sline = §ionLines[sec->lines[i]];
|
||||
if (sline->point2index < 0) continue; // Exhumed LEV14 triggers this on sector 169.
|
||||
|
||||
auto wallp = &wall[sline->startpoint];
|
||||
vertexes[j].p = { wallp->x * (1 / 16.), wallp->y * (1 / -16.) };
|
||||
|
|
Loading…
Reference in a new issue