My TArray of one structure works when declared inside a function, but not when declared on header file

Paste error message.