From f3b414369815d47e2fd66a448edbcf46c960e8d9 Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Sun, 5 Jan 2025 18:31:53 -0600 Subject: [PATCH] fix typo --- dChatServer/ChatWebAPI.cpp | 2 +- dChatServer/PlayerContainer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dChatServer/ChatWebAPI.cpp b/dChatServer/ChatWebAPI.cpp index d720a9cd..37b122fb 100644 --- a/dChatServer/ChatWebAPI.cpp +++ b/dChatServer/ChatWebAPI.cpp @@ -78,7 +78,7 @@ void HandleRequests(mg_connection* connection, int request, void* request_data) reply.message = data.empty() ? "{\"error\":\"No Players Online\"}" : data.dump(); } else if (mg_match(http_msg->uri, mg_str((root_path + "teams").c_str()), NULL)) { // Get Teams - const json data = Game::playerContainer.GetTeamComtainer(); + const json data = Game::playerContainer.GetTeamContainer(); reply.status = data.empty() ? 204 : 200; reply.message = data.empty() ? "{\"error\":\"No Teams Online\"}" : data.dump(); diff --git a/dChatServer/PlayerContainer.h b/dChatServer/PlayerContainer.h index fdb8794e..00ef9e75 100644 --- a/dChatServer/PlayerContainer.h +++ b/dChatServer/PlayerContainer.h @@ -102,7 +102,7 @@ public: LWOOBJID GetId(const std::u16string& playerName); uint32_t GetMaxNumberOfBestFriends() { return m_MaxNumberOfBestFriends; } uint32_t GetMaxNumberOfFriends() { return m_MaxNumberOfFriends; } - const TeamContainer& GetTeamComtainer() { return teamContainer; } + const TeamContainer& GetTeamContainer() { return teamContainer; } std::vector& GetTeamsMut() { return teamContainer.mTeams; }; const std::vector& GetTeams() { return GetTeamsMut(); };