From 06607c9b55cd9990e589b6e79000825d5e0b6204 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Thu, 25 Apr 2024 21:05:35 -0500 Subject: [PATCH] Update dChatServer/ChatWebApi.cpp Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> --- dChatServer/ChatWebApi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dChatServer/ChatWebApi.cpp b/dChatServer/ChatWebApi.cpp index 0ac185d88..05ba4a6e9 100644 --- a/dChatServer/ChatWebApi.cpp +++ b/dChatServer/ChatWebApi.cpp @@ -66,7 +66,7 @@ void ChatWebApi::Listen(const uint32_t port) { toInsert["loot_flag"] = teamData->lootFlag; toInsert["local"] = teamData->local; - auto leader = Game::playerContainer.GetPlayerData(teamData->leaderID); + auto& leader = Game::playerContainer.GetPlayerData(teamData->leaderID); toInsert["leader"] = leader.to_json(); json members;