FMath::VInterpConstantTo - Added code results in Fatal error

After following this chapter of the course UE5 has started giving Fatal errors when trying to launch the project. As far as I can tell it has to do with an access violation related to the Mover.cpp file.

Here follows the error log:

And here is my cpp code:

What is line 14?

Ah I see now that it didn’t copy the numbers. It is where OriginalLocation is set.

OriginalLocation = GetOwner()->GetActorLocation();

Oh I see now. That code should be in BeginPlay not the constructor.