diff --git a/ScriptCore/Editor/EntityEditor.cs b/ScriptCore/Editor/EntityEditor.cs index b1c64bc..dc7b0e7 100644 --- a/ScriptCore/Editor/EntityEditor.cs +++ b/ScriptCore/Editor/EntityEditor.cs @@ -642,7 +642,7 @@ internal class EntityEditor newIndex = list.Count; Array newArray = Array.CreateInstance(elementType, list.Count + 1); - Array.Copy((Array)list, newArray, newArray.Length); + Array.Copy((Array)list, newArray, list.Count); newList = newArray; }