From a3e34354c725b7bd3a1b67d1e1bd54d407e050ba Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Sat, 18 May 2024 23:47:48 +0800 Subject: [PATCH] fix --- src/Internal/Editor/EcsGUI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Internal/Editor/EcsGUI.cs b/src/Internal/Editor/EcsGUI.cs index bd18a12..a825e09 100644 --- a/src/Internal/Editor/EcsGUI.cs +++ b/src/Internal/Editor/EcsGUI.cs @@ -284,7 +284,7 @@ namespace DCFApixels.DragonECS.Unity.Editors var propsCounter = property.Copy(); int lastDepth = propsCounter.depth; bool next = propsCounter.Next(true) && lastDepth < propsCounter.depth; - int result = next ? -1 : 0; + int result = 0; while (next) { result++;