Stability fixes

This commit is contained in:
Wojtek Figat
2023-10-12 23:12:53 +02:00
parent 74a69b8f13
commit fdd6b171bb
5 changed files with 13 additions and 2 deletions

View File

@@ -279,6 +279,8 @@ namespace FlaxEditor.Content.GUI
// Sort items depending on sortMethod parameter
_children.Sort(((control, control1) =>
{
if (control == null || control1 == null)
return 0;
if (sortType == SortType.AlphabeticReverse)
{
if (control.CompareTo(control1) > 0)