Fixed compilation with older compilers

This commit is contained in:
Deve 2018-07-09 21:40:52 +02:00
parent 8885119974
commit 68d43734cd

View File

@ -193,9 +193,10 @@ Online::XMLRequest* ServersManager::getLANRefreshRequest() const
uint8_t mode = s.getUInt8();
sender.setPort(port);
uint8_t password = s.getUInt8();
servers_now.emplace(name, std::make_shared<Server>
(cur_server_id++, name, max_players, players,
difficulty, mode, sender, password == 1) );
servers_now.insert(std::make_pair(name,
std::make_shared<Server>(cur_server_id++, name,
max_players, players, difficulty, mode, sender,
password == 1)));
//all_servers.[name] = servers_now.back();
} // if received_data
} // while still waiting