Linedefs Mode: fixed a crash that could happen when the mouse was moved out of the map control while an UDBScript was modifying the map

This commit is contained in:
biwa 2022-04-09 17:52:38 +02:00
parent f9fe1ea900
commit 98d32f7946

View file

@ -483,7 +483,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
/// </summary>
private void RenderOverlay()
{
if (renderer.StartOverlay(true))
if (General.Map.Map.IsSafeToAccess && renderer.StartOverlay(true))
{
if (!selecting) //mxd
{