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() ); } }