Crash when calling GetController or GetCharacterMovement
Hi everyone, for some reason I'm having a problem which makes the entire editor crash.
I have a basic PlayerController class that binds to input axises. Inside the functions for the handling of input I call some functions such as MoveHorizontal/MoveVertical etc. from a possessed Character class. Inside those function I just get the character movement component object of the class and use AddInputVector to modify the movement of the character.
Now, while everything is working fine for single player purposes.. the entire editor crashes when I try to play in a multiplayer environment. As a matter of fact, I can't even check for the presence of a null pointer since the GetCharacterMovement itself crashes immediately.
Does anyone have any clue what this could be?
asked Jan 22 '16 at 09:05 AM in C++ Programming
If this->GetCharacterMovement() crashes immediately, then your 'this' value is not valid. Somehow you've managed to get a pointer to a non-existent player controller or character.
As the other guy said, post your code.
answered Jan 22 '16 at 11:38 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here