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

That was it! It solved the problem, the function was being called before the game mode reference was set, so there’s no valid game mode resulting in the engine to crash.

Thank you 3dRaven to take the time and step through the problem with me, even replicating my code to test. I really can’t thank you enough.

1 Like