Hi Korimaru,
Thank you for providing the source code. I was able to reproduce the crash that you were seeing using the code that you provided. You were correct when you thought that the line Super::AGameCharacter();
may be the culprit. The error message that you were provided isn’t very clear about what is happening. However, when I tested this in our latest internal build of the Engine, the error message has been improved to be a bit clearer: “UObject() constructor called but it’s not the object that’s currently being constructed with NewObject. Maybe you trying to construct it on the stack which is not supported.”
If you want to be able to call the Super for the constructor, you would use this format instead:
ATestCharacter::ATestCharacter()
:Super()
{
...
}