Game crashed

My Game worked well after my implementation of lecture 121, but when made changes in my code according to lecture 122, it failed to compile and crashed in the second time. After that I can’t even rebuild my game even if I tried to delete the binaries file several times.
The crash report is like this:


And my code is

I tried to comment out the changes in my code, but it still don’t work. Wonder if it is the problem of my old computer. What should I do to rebuild the game? Is there anything wrong in my code?

You’re writing code in the constructor that should be in BeginPlay. The component doesn’t have an owner at construction so doing GetOwner()-> is going to be dereferencing a null pointer.

Thank you! It solves my problem.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.