diff --git a/Source/Engine/UI/GUI/Control.cs b/Source/Engine/UI/GUI/Control.cs index 1c4eda965..c2ba34f05 100644 --- a/Source/Engine/UI/GUI/Control.cs +++ b/Source/Engine/UI/GUI/Control.cs @@ -1006,10 +1006,9 @@ namespace FlaxEngine.GUI c = c.Parent; if (c == parent) - return location; + break; } - - throw new ArgumentException(); + return location; } ///