Skip to content

Commit

Permalink
fix : PossessedCharacter may be null .
Browse files Browse the repository at this point in the history
  • Loading branch information
murataka committed Sep 27, 2022
1 parent aca2385 commit 9e99a8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/ALSV4_CPP/Private/Character/ALSPlayerController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ void AALSPlayerController::OnRep_Pawn()
PossessedCharacter = Cast<AALSBaseCharacter>(GetPawn());
SetupCamera();
SetupInputs();

if (!PossessedCharacter) return;

UALSDebugComponent* DebugComp = Cast<UALSDebugComponent>(PossessedCharacter->GetComponentByClass(UALSDebugComponent::StaticClass()));
if (DebugComp)
Expand Down

0 comments on commit 9e99a8a

Please sign in to comment.