From 731b828c126fb03fb0d52b78ccad07b18462d2c1 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Fri, 1 Dec 2023 08:13:01 -0800 Subject: [PATCH] properties: fix visiting multiple owned by same person (#1325) --- dGame/dComponents/PropertyManagementComponent.h | 2 ++ dScripts/BasePropertyServer.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dGame/dComponents/PropertyManagementComponent.h b/dGame/dComponents/PropertyManagementComponent.h index 2f2deea4..d38437c4 100644 --- a/dGame/dComponents/PropertyManagementComponent.h +++ b/dGame/dComponents/PropertyManagementComponent.h @@ -164,6 +164,8 @@ public: LWOCLONEID GetCloneId() { return clone_Id; }; + LWOOBJID GetId() const noexcept { return propertyId; } + private: /** * This diff --git a/dScripts/BasePropertyServer.cpp b/dScripts/BasePropertyServer.cpp index fe20b09d..9048adeb 100644 --- a/dScripts/BasePropertyServer.cpp +++ b/dScripts/BasePropertyServer.cpp @@ -101,7 +101,7 @@ void BasePropertyServer::BasePlayerLoaded(Entity* self, Entity* player) { missionComponent->Progress( eMissionTaskType::VISIT_PROPERTY, mapID.GetMapID(), - mapID.GetCloneID() + PropertyManagementComponent::Instance()->GetId() ); } }