mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-03-03 00:10:55 +00:00
Prevent possible slope handle crash
This commit is contained in:
parent
3c8373205a
commit
395243df3e
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
handle = potentialhandles.OrderByDescending(h => Vector2D.Distance(h.Vertex.Position, vertex.Position)).First();
|
||||||
|
|
||||||
if (handle == this)
|
if (handle == this)
|
||||||
|
|
Loading…
Reference in a new issue