Prevent possible slope handle crash

This commit is contained in:
spherallic 2023-09-01 00:30:19 +02:00
parent 3c8373205a
commit 395243df3e

View file

@ -213,6 +213,9 @@ namespace CodeImp.DoomBuilder.VisualModes
}
}
if (potentialhandles.Count == 0)
return null;
handle = potentialhandles.OrderByDescending(h => Vector2D.Distance(h.Vertex.Position, vertex.Position)).First();
if (handle == this)