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.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index d2e7c3ab0..4ba226266 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -451,10 +451,8 @@ public:
UpdateNetworkGameWindow(true);
this->field = NGWW_CLIENT;
- this->server = NULL;
- this->list_pos = SLP_INVALID;
-
this->last_joined = NetworkGameListAddItem(NetworkAddress(_settings_client.network.last_host, _settings_client.network.last_port));
+ this->server = this->last_joined;
this->servers.SetListing(this->last_sorting);
this->servers.SetSortFuncs(this->sorter_funcs);