array<ClassType> arr = new array<ClassType>(); ClassType ct = new ClassType(); arr.Insert(ct); arr.Get(0); == NULL
Reporting for Bubbles#0173 as he can't create an account right now.
array<ClassType> arr = new array<ClassType>(); ClassType ct = new ClassType(); arr.Insert(ct); arr.Get(0); == NULL
Reporting for Bubbles#0173 as he can't create an account right now.
Hello, please, try with the following, it will hold the reference to the object:
array<ref ClassType> arr = new array<ref ClassType>();
Is the code used within a single method? ct will hold the reference within the method but will be released when it leaves the method scope.