Ok so I’ve got an array of my custom class AMech_RPGCharacter:
TArray<AMech_RPGCharacter*> members;
It appears to run out of memory sometimes when I use Num() to check if there’s anything in it.
Like so:
UGroup* group = GetOwner()->GetGroup();
// Does the owner have a group and is there more than 1 other person
if (group != NULL && group->GetMembers().Num() > 1) {}
I’m doing this in a few places along with lopping through the array several times every Tick() without issue.
What would cause “Ran out of memory allocating 18446744069128253160 bytes with alignment 0”.
I only add to the array once the game begins and never do a Remove() or Add() after that?