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 @@ class PetComponent final : public Component { /** * 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