TArray on mutation/addition throws 'strange' access violation exception (C++)

Heyo!

Within Object inheriting from ActorComponent exception is thrown when attempting to add/modify TArray items through member method of that Object.

Using following UPROPERTY members

Member function attempting to mutate properties:

When attempting to mutate TArray value of index ‘0’ (array is initialized with single value in constructor):
image

(After commenting out the mutation of TArray) when attempting to add new UMarketOrder object to TArray<UMarketOrder*>:

Does anyone have any idea as to why this simple TArray use causes exception?

Found issue with initializing Object from TSubclassOf.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.