TArray insertion invalidates contents

this is a weird line to have.
to be honest i don’t understand what the code is supposed to do. the var names are very nondescriptive and confusing. can you share the actual code?

also can you share the actual definition of the whole class ? not just two floating variables. (you could strip other variables but it’s good to know other pieces too)

also please add the defintion of this “foos” variable