diff options
author | Patric Stout <truebrain@openttd.org> | 2021-05-11 12:32:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 12:32:27 +0200 |
commit | 9e7e87ce3e7a7a4f5373883550c6f05a5d023ab6 (patch) | |
tree | 4ca56632dba0b0e62c68db9765ecb0ab77b94f30 /src/network/network_gui.cpp | |
parent | 9841ebb0bd6531b4ac1474c4c35103d12b8eeb43 (diff) | |
download | openttd-9e7e87ce3e7a7a4f5373883550c6f05a5d023ab6.tar.xz |
Fix: [Network] don't rebuild the host-list during iterating the list (#9240)
Additionally, only rebuild it when we added a new manual server,
as otherwise it is a noop anyway.
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 2df40eeec..35597fa04 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -830,6 +830,7 @@ public: if (!StrEmpty(str)) { strecpy(_settings_client.network.connect_to_ip, str, lastof(_settings_client.network.connect_to_ip)); NetworkAddServer(str); + NetworkRebuildHostList(); } } |