Problems accessing class when sorting TArray
Array to sort:
Sorting in a custom game mode:
Struct declaration in ASCharacter:
Error C2248 'ASCharacter::ASCharacter': cannot access private member declared in class 'ASCharacter'
I replaced the binary predicate within the StableSort with a simple function in the ASCharacter class and had the same access problem.
For anyone who encounters a similar problem: I changed this -
And it compiled and seems to work fine now.
answered Apr 03 '18 at 01:49 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here