From e9bdc8b319cfe1113bff2b45c6dbe6f6ec8ee937 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 17 Apr 2023 12:36:59 +0200 Subject: [PATCH] Fix crash when starting drag&drop with invalid control state (detached from window) --- Source/Engine/UI/GUI/Control.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/UI/GUI/Control.cs b/Source/Engine/UI/GUI/Control.cs index 8b2401428..427c1aa8f 100644 --- a/Source/Engine/UI/GUI/Control.cs +++ b/Source/Engine/UI/GUI/Control.cs @@ -987,7 +987,7 @@ namespace FlaxEngine.GUI { // Hide tooltip Tooltip?.Hide(); - Root.DoDragDrop(data); + Root?.DoDragDrop(data); } #endregion