ScriptCore: Fixed adding element to arrays

This commit is contained in:
Simon Lübeß
2023-12-31 17:22:04 +01:00
parent beb696ee5d
commit 418aa71241
+1 -1
View File
@@ -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;
}