Fixed compilation with older compilers
This commit is contained in:
parent
8885119974
commit
68d43734cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user