summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-03-25 19:43:17 +0000
committerrubidium <rubidium@openttd.org>2012-03-25 19:43:17 +0000
commitf2f939906e78010ccf23e0d6a250d12a3a74a7af (patch)
treeb3668b0752953d1b6706e3e021d1db2c2144438d /src/network
parent113746b3a69f14cefb499fe3c5e205f207bc6fa6 (diff)
downloadopenttd-f2f939906e78010ccf23e0d6a250d12a3a74a7af.tar.xz
(svn r24069) -Fix (r24062): crash when not having a valid last joined address
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 965a3a91f..acda5dab1 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -452,7 +452,7 @@ public:
this->field = WID_NG_CLIENT;
this->last_joined = NetworkGameListAddItem(NetworkAddress(_settings_client.network.last_host, _settings_client.network.last_port));
this->server = this->last_joined;
- NetworkUDPQueryServer(this->last_joined->address);
+ if (this->last_joined != NULL) NetworkUDPQueryServer(this->last_joined->address);
this->servers.SetListing(this->last_sorting);
this->servers.SetSortFuncs(this->sorter_funcs);