summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2005-01-05 09:59:45 +0000
committerdominik <dominik@openttd.org>2005-01-05 09:59:45 +0000
commite31da8532e8deb9daccd203de6d08166be0a9243 (patch)
tree97d3ac6b8e2310beb4b81a0ee4f305d9f9995f3c
parentc4b682f9963d6047e95bd669d56e1d415a17779f (diff)
downloadopenttd-e31da8532e8deb9daccd203de6d08166be0a9243.tar.xz
(svn r1381) Fix: [ 1095143 ] Servers list now also saves the port
-rw-r--r--network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/network.c b/network.c
index 8a522c4af..31b3b09aa 100644
--- a/network.c
+++ b/network.c
@@ -878,7 +878,7 @@ void NetworkRebuildHostList()
NetworkGameList *item = _network_game_list;
while (item != NULL && i != lengthof(_network_host_list)) {
if (item->manually)
- _network_host_list[i++] = strdup(item->info.hostname);
+ _network_host_list[i++] = str_fmt("%s:%i", item->info.hostname, item->port);
item = item->next;
}