summaryrefslogtreecommitdiff
path: root/src/network/network.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-02 20:17:46 +0000
committerrubidium <rubidium@openttd.org>2009-04-02 20:17:46 +0000
commit1e205e01b83ac995c14105e0eb1f992cbd3e0625 (patch)
treea5d71eebbdd7eef0f674eaff8b56f9a5785084f9 /src/network/network.cpp
parentc0c6e07081fb55d1ec5c46cc3606185062cfe45c (diff)
downloadopenttd-1e205e01b83ac995c14105e0eb1f992cbd3e0625.tar.xz
(svn r15916) -Codechange: let the network game list use NetworkAddress
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r--src/network/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 7f0279eac..9e78f0411 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -714,7 +714,7 @@ void NetworkRebuildHostList()
while (item != NULL && i != lengthof(_network_host_list)) {
if (item->manually) {
free(_network_host_list[i]);
- _network_host_list[i++] = str_fmt("%s:%i", item->info.hostname, item->port);
+ _network_host_list[i++] = str_fmt("%s:%i", item->info.hostname, item->address.GetPort());
}
item = item->next;
}