mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r24069) -Fix (r24062): crash when not having a valid last joined address
This commit is contained in:
parent
113746b3a6
commit
f2f939906e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user