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++;