Open boformer opened 9 years ago
I guess the problem is that the code works like this:
MyStruct structToBeEdited = FooManager.instance.m_foos.m_buffer[x]; structToBeEdited.member = userInput;
Problem is that structToBeEdited is a full copy of a struct, not a reference to the original struct. There are 2 solutions:
structToBeEdited
FooManager.instance.m_foos.m_buffer[x] = structToBeEdited;
I guess the problem is that the code works like this:
Problem is that
structToBeEdited
is a full copy of a struct, not a reference to the original struct. There are 2 solutions:FooManager.instance.m_foos.m_buffer[x] = structToBeEdited;