diff --git a/dChatServer/ChatWebApi.cpp b/dChatServer/ChatWebApi.cpp index 4e4d79a04..6b864d45d 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;