diff options
author | PeterN <peter1138@openttd.org> | 2019-04-27 20:47:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-27 20:47:32 +0100 |
commit | 0ab6244f6b7d91d91360a30b274af36ce3ef35f3 (patch) | |
tree | ebe85e014de638f20eb6309b2e677a1586c5f576 | |
parent | ead5b5511998d23942c84644f13dc7f30601cc08 (diff) | |
download | openttd-0ab6244f6b7d91d91360a30b274af36ce3ef35f3.tar.xz |
Fix #7165: Missed another 'Append() --> push_back()' replacement (#7548)
-rw-r--r-- | src/network/core/host.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/host.cpp b/src/network/core/host.cpp index 98a706e2f..04247d99c 100644 --- a/src/network/core/host.cpp +++ b/src/network/core/host.cpp @@ -174,7 +174,7 @@ static void NetworkFindBroadcastIPsInternal(NetworkAddressList *broadcast) // !G (r.ifr_flags & IFF_BROADCAST) && ioctl(sock, SIOCGIFBRDADDR, &r) != -1) { NetworkAddress addr(&r.ifr_broadaddr, sizeof(sockaddr)); - if (std::none_of(broadcast->begin(), broadcast->end(), [&addr](NetworkAddress const& elem) -> bool { return elem == addr; })) *broadcast->Append() = addr; + if (std::none_of(broadcast->begin(), broadcast->end(), [&addr](NetworkAddress const& elem) -> bool { return elem == addr; })) broadcast->push_back(addr); } } |