@@ -56,25 +56,25 @@ NetworkGameList *NetworkGameListAddItem(
memset(item, 0, sizeof(*item));
item->next = NULL;
item->ip = ip;
item->port = port;
_network_game_count++;
UpdateNetworkGameWindow(false);
return item;
}
void NetworkGameListAddQueriedItem(NetworkGameInfo *info, bool server_online)
void NetworkGameListAddQueriedItem(const NetworkGameInfo *info, bool server_online)
{
// We queried a server and now we are going to add it to the list
NetworkGameList *item;
item = NetworkGameListAddItem(_network_last_host_ip, _network_last_port);
item->online = server_online;
memcpy(&item->info, info, sizeof(NetworkGameInfo));
ttd_strlcpy(item->info.hostname, _network_last_host, sizeof(item->info.hostname));