Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneko committed Sep 5, 2024
1 parent aafee78 commit 79a35b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Application/SampleGameScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void PlayerController::FixedUpdate(float timeStep)
const float moveSpeed = 5.0f;

auto input = GetSubsystem<Input>();
auto camera = node_->GetComponent<Camera>(true);
auto camera = node_->FindComponent<Camera>();
auto kinematicController = node_->GetComponent<KinematicCharacterController>();

if (!camera || !kinematicController)
Expand Down Expand Up @@ -128,7 +128,7 @@ void SampleGameScreen::InitScene()

// Find camera.
actorNode_ = scene_->FindChild("Actor");
Camera* camera = actorNode_ ? actorNode_->GetComponent<Camera>(true) : nullptr;
Camera* camera = actorNode_ ? actorNode_->FindComponent<Camera>() : nullptr;
if (!camera)
return;
cameraNode_ = camera->GetNode();
Expand Down

0 comments on commit 79a35b0

Please sign in to comment.