mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
ScriptCore: Fixed adding element to arrays
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user