fixed crash when drawing an unfinished sector that start or ends at existing linedefs

This commit is contained in:
codeimp 2009-01-16 09:35:49 +00:00
parent 50c9a15408
commit 3666e733b2

View file

@ -958,7 +958,7 @@ namespace CodeImp.DoomBuilder.Geometry
// Find out where the end will stitch and create test points
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, false));