mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 12:22:35 +00:00
fixed crash when drawing an unfinished sector that start or ends at existing linedefs
This commit is contained in:
parent
50c9a15408
commit
3666e733b2
1 changed files with 1 additions and 1 deletions
|
@ -958,7 +958,7 @@ namespace CodeImp.DoomBuilder.Geometry
|
||||||
|
|
||||||
// Find out where the end will stitch and create test points
|
// Find out where the end will stitch and create test points
|
||||||
Linedef l2 = MapSet.NearestLinedefRange(oldlines, lastline.End.Position, MapSet.STITCH_DISTANCE);
|
Linedef l2 = MapSet.NearestLinedefRange(oldlines, lastline.End.Position, MapSet.STITCH_DISTANCE);
|
||||||
if(l1 != null)
|
if(l2 != null)
|
||||||
{
|
{
|
||||||
endpoints.Add(new LinedefSide(l2, true));
|
endpoints.Add(new LinedefSide(l2, true));
|
||||||
endpoints.Add(new LinedefSide(l2, false));
|
endpoints.Add(new LinedefSide(l2, false));
|
||||||
|
|
Loading…
Reference in a new issue