diff options
author | rubidium42 <rubidium@openttd.org> | 2021-04-27 10:56:26 +0200 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2021-04-27 18:17:34 +0100 |
commit | cbad518bf3c7e6d05b62d8c1d063b89d974e5f33 (patch) | |
tree | 4c48ee1f10f23ec4a27e82d3db110de54db31480 /src/network/network_gui.cpp | |
parent | cf8c1aa860e05e696f9829e3b031a22ca82781ef (diff) | |
download | openttd-cbad518bf3c7e6d05b62d8c1d063b89d974e5f33.tar.xz |
Codechange: [Network] Do not leak os_abstraction.h via network_func
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 68208ee3f..ebba47d85 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1470,15 +1470,15 @@ struct NetworkLobbyWindow : public Window { case WID_NL_JOIN: // Join company /* Button can be clicked only when it is enabled. */ - NetworkClientConnectGame(NetworkAddress(_settings_client.network.last_host, _settings_client.network.last_port), this->company); + NetworkClientConnectGame(_settings_client.network.last_host, _settings_client.network.last_port, this->company); break; case WID_NL_NEW: // New company - NetworkClientConnectGame(NetworkAddress(_settings_client.network.last_host, _settings_client.network.last_port), COMPANY_NEW_COMPANY); + NetworkClientConnectGame(_settings_client.network.last_host, _settings_client.network.last_port, COMPANY_NEW_COMPANY); break; case WID_NL_SPECTATE: // Spectate game - NetworkClientConnectGame(NetworkAddress(_settings_client.network.last_host, _settings_client.network.last_port), COMPANY_SPECTATOR); + NetworkClientConnectGame(_settings_client.network.last_host, _settings_client.network.last_port, COMPANY_SPECTATOR); break; case WID_NL_REFRESH: // Refresh |