Fix variable name in JSON

coverity_scan^2
Koncord 8 years ago
parent e92df0c465
commit 2b0ae7b9ca

@ -67,7 +67,7 @@ MasterClient::Send(std::string hostname, std::string modname, unsigned maxPlayer
sstr << "\"port\": " << serverPort << ", ";
sstr << "\"query_port\": " << queryPort << ", ";
sstr << "\"hostname\": \"" << hostname.c_str() << "\", ";
sstr << "\"hostname\": \"" << modname.c_str() << "\", ";
sstr << "\"modname\": \"" << modname.c_str() << "\", ";
sstr << "\"players\": " << players << ", ";
sstr << "\"max_players\": " << maxPlayers;
sstr << "}";

Loading…
Cancel
Save