From 2b0ae7b9ca087aead1d65fb2c7e37f0d9793cbc8 Mon Sep 17 00:00:00 2001 From: Koncord Date: Tue, 10 Jan 2017 20:35:23 +0800 Subject: [PATCH] Fix variable name in JSON --- apps/openmw-mp/MasterClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw-mp/MasterClient.cpp b/apps/openmw-mp/MasterClient.cpp index e7c86c6d2..bd0515d97 100644 --- a/apps/openmw-mp/MasterClient.cpp +++ b/apps/openmw-mp/MasterClient.cpp @@ -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 << "}";