summaryrefslogtreecommitdiff
path: root/src/network/network_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r--src/network/network_gui.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 50a902d59..8c16f4ddc 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -352,7 +352,7 @@ public:
virtual void OnPaint()
{
- const NetworkGameList *sel = this->server;
+ NetworkGameList *sel = this->server;
const SortButtonState arrow = this->servers.IsDescSortOrder() ? SBS_DOWN : SBS_UP;
if (this->servers.NeedRebuild()) {
@@ -453,8 +453,7 @@ public:
DrawString(x, this->widget[NGWW_DETAILS].right, y, STR_NETWORK_SERVER_VERSION, TC_GOLD); // server version
y += 10;
- SetDParamStr(0, sel->info.hostname);
- SetDParam(1, sel->address.GetPort());
+ SetDParamStr(0, sel->address.GetAddressAsString());
DrawString(x, this->widget[NGWW_DETAILS].right, y, STR_NETWORK_SERVER_ADDRESS, TC_GOLD); // server address
y += 10;