This commit is contained in:
Aaron Kimbre 2025-01-05 18:31:53 -06:00
parent 55a1209c75
commit f3b4143698
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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<TeamData*>& GetTeamsMut() { return teamContainer.mTeams; };
const std::vector<TeamData*>& GetTeams() { return GetTeamsMut(); };