From 846ba894a46f544146d69d040e51d9f85505cb7c Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Thu, 2 Jan 2025 20:03:16 -0600 Subject: [PATCH] Update dChatServer/PlayerContainer.cpp Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> --- dChatServer/PlayerContainer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dChatServer/PlayerContainer.cpp b/dChatServer/PlayerContainer.cpp index 257bd40d..5c627156 100644 --- a/dChatServer/PlayerContainer.cpp +++ b/dChatServer/PlayerContainer.cpp @@ -22,11 +22,10 @@ const json PlayerData::to_json() const { data["gm_level"] = this->gmLevel; data["muted"] = this->GetIsMuted(); - json zoneID; + json& zoneID = data["zone_id"]; zoneID["map_id"] = std::to_string(this->zoneID.GetMapID()); zoneID["instance_id"] = std::to_string(this->zoneID.GetInstanceID()); zoneID["clone_id"] = std::to_string(this->zoneID.GetCloneID()); - data["zone_id"] = zoneID; return data; }