I trigger an access violation when I call the Actor->GetAttachedActors() function in a class derived from the ACharacter class as it tries to read the root component:
What’s the best way to approach this? I don’t know if changing the root component will alter some of the ACharacter functionality (with regards pathfinding or whatever) and I’d rather not make any changes to the engine or anything.
This is the code calling the function:
Thanks in advance.