How to pass AActor to blueprint event

So I have blueprint event, and I want to pass it an AActor. I’m trying to do it like this:

`UFUNCTION ( BlueprintImplementableEvent, BlueprintCallable, Category = “Reactions” )

virtual void OnPressed ( AActor* underCursor );`

But I get some memory error on stop simulation.
How do I do it correctly?

[EDIT]

Unhandled exception at the end disappears, when I remove AActor pointer from event.

[/EDIT]

Okay, it was my bad. It works perfectly with pointer. I had pointer to APlayerController in this class, which I didn’t marked as UPROPERTY() and somehow pointer in event triggered error