Update dChatServer/ChatWebApi.cpp

Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com>
This commit is contained in:
Aaron Kimbrell 2024-04-25 21:05:35 -05:00 committed by GitHub
parent c3ea448be0
commit 06607c9b55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@ void ChatWebApi::Listen(const uint32_t port) {
toInsert["loot_flag"] = teamData->lootFlag; toInsert["loot_flag"] = teamData->lootFlag;
toInsert["local"] = teamData->local; toInsert["local"] = teamData->local;
auto leader = Game::playerContainer.GetPlayerData(teamData->leaderID); auto& leader = Game::playerContainer.GetPlayerData(teamData->leaderID);
toInsert["leader"] = leader.to_json(); toInsert["leader"] = leader.to_json();
json members; json members;