Skip to content
Snippets Groups Projects
Commit 395243df authored by sphere's avatar sphere
Browse files

Prevent possible slope handle crash

parent 3c837320
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment