You dont need it at all as far as I can see. You get the reference from GetActor() already. There is no need to declare another variable and reference it if you are never going to use it. Also, the reason for the crash is probably the fact that you must use CreateDefaultObject or such (UClass::CreateDefaultObject | Unreal Engine Documentation) because UE does a lot of work behind the scenes.