From 5ddf4ce28b00ffe125dc6afdf3feb3b06ca43b90 Mon Sep 17 00:00:00 2001 From: jadebenn Date: Sat, 20 Apr 2024 11:23:35 -0500 Subject: [PATCH] fix unused expression --- dGame/dComponents/PetComponent.cpp | 4 ++-- dGame/dComponents/PetComponent.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dGame/dComponents/PetComponent.cpp b/dGame/dComponents/PetComponent.cpp index 292d8a3f..19013620 100644 --- a/dGame/dComponents/PetComponent.cpp +++ b/dGame/dComponents/PetComponent.cpp @@ -826,8 +826,8 @@ void PetComponent::OnInteract() { } } -void PetComponent::StartInteract(const NiPoint3& position, const PetInteractType interactionType, const LWOOBJID& interactID) { - m_Interaction.obj; // TODO: Check if this should be serialized for goToObj +void PetComponent::StartInteract(const NiPoint3 position, const PetInteractType interactionType, const LWOOBJID interactID) { + m_Interaction.obj = interactID; // TODO: Check if this should be serialized for goToObj m_Interaction.type = interactionType; m_Interaction.ability = ePetAbilityType::GoToObject; SetPetAiState(PetAiState::goToObj); diff --git a/dGame/dComponents/PetComponent.h b/dGame/dComponents/PetComponent.h index a9f6b44c..cdde1297 100644 --- a/dGame/dComponents/PetComponent.h +++ b/dGame/dComponents/PetComponent.h @@ -174,7 +174,7 @@ public: /** * Start a pet interaction with an object at a given position */ - void StartInteract(const NiPoint3& position, const PetInteractType interactionType, const LWOOBJID& interactID); + void StartInteract(const NiPoint3 position, const PetInteractType interactionType, const LWOOBJID interactID); /** * Stop a pet interaction with an object