From bd6bdddcdeb188f8e471a2cce2b717bcc2c3686b Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Wed, 30 Mar 2022 00:33:31 -0700 Subject: [PATCH] clone ID now based on character data --- dGame/dComponents/PropertyManagementComponent.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dGame/dComponents/PropertyManagementComponent.cpp b/dGame/dComponents/PropertyManagementComponent.cpp index f2f6e0eb..a5e33667 100644 --- a/dGame/dComponents/PropertyManagementComponent.cpp +++ b/dGame/dComponents/PropertyManagementComponent.cpp @@ -199,12 +199,16 @@ void PropertyManagementComponent::Claim(const LWOOBJID playerId) const auto& worldId = zone->GetZoneID(); const auto zoneId = worldId.GetMapID(); - const auto cloneId = worldId.GetCloneID(); auto* entity = EntityManager::Instance()->GetEntity(playerId); auto* user = entity->GetParentUser(); + auto character = entity->GetCharacter(); + if (!character) return; + + const auto cloneId = character->GetPropertyCloneID(); + propertyId = ObjectIDManager::GenerateRandomObjectID(); auto* insertion = Database::CreatePreppedStmt(