When I run the game from the editor the unreal crash and I get this log:
Error LogWindows === Critical error: ===
Error LogWindows Fatal error!
Error LogWindows Unhandled Exception: EXCEPTION_ACCESS_VIOLATION writing address 0x00000000000000dc
Error LogWindows [Callstack] 0x00007ffd9b3e7b50 UnrealEditor-CryptRaider.patch_0.exe!UMover::SetShouldMove() [C:\Unreal\CryptRaider2\Source\CryptRaider\Mover.cpp:19]
And this is the code of SetShouldMove
TriggerComponent.h :
public:
UTriggerComponent();
// Called every frame
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
UFUNCTION(BlueprintCallable)
void SetMover(UMover* Mover);
private:
UPROPERTY(EditAnywhere)
FName AcceptedActorTag;
UMover* Mover;
AActor* GetAcceptedActor();
TriggerComponent.cpp
void UTriggerComponent::SetMover(UMover* NewMover)
{
Mover = NewMover;
}
Mover.cpp
void UMover::SetShouldMove(bool NewShouldMove)
{ // this is line 19
ShouldMove = NewShouldMove;
}