Skip to content

Commit a7ad8fc

Browse files
committed
fix missing pointer
1 parent ffae72e commit a7ad8fc

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

Source/PBCharacterMovement/Private/Character/PBPlayerCharacter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ APBPlayerCharacter::APBPlayerCharacter(const FObjectInitializer& ObjectInitializ
2929

3030
// Camera eye level
3131
BaseEyeHeight = 53.34f;
32+
33+
// get pointer to movement component
34+
MovementPtr = Cast<UPBPlayerMovement>(ACharacter::GetMovementComponent());
3235
}
3336

3437
void APBPlayerCharacter::BeginPlay()

0 commit comments

Comments
 (0)