mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Nodes Viewer plugin: added a sanity check.
This commit is contained in:
parent
a531e41a50
commit
8238ae9138
1 changed files with 4 additions and 0 deletions
|
@ -439,6 +439,10 @@ namespace CodeImp.DoomBuilder.Plugins.NodesViewer
|
|||
{
|
||||
Split s;
|
||||
Seg sg = segs[ssectors[ss].firstseg + i];
|
||||
|
||||
//mxd. Sanity check, because some segs in Doom maps refer to non-existing verts.
|
||||
if(sg.startvertex > verts.Length - 1 || sg.endvertex > verts.Length - 1) continue;
|
||||
|
||||
s.pos = verts[sg.startvertex];
|
||||
s.delta = verts[sg.endvertex] - verts[sg.startvertex];
|
||||
CropPolygon(poly, s);
|
||||
|
|
Loading…
Reference in a new issue