diff options
author | stormcone <48624099+stormcone@users.noreply.github.com> | 2019-03-26 22:59:43 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-03-26 22:20:56 +0000 |
commit | b913c92aa77fb5f435d3f8795d0f6eae3e4ae132 (patch) | |
tree | 21501b704743cfc01d9dec8236759ce013db197a | |
parent | 427d9d483fcd7e3c8dae8e9c84832c9e6bb34b50 (diff) | |
download | openttd-b913c92aa77fb5f435d3f8795d0f6eae3e4ae132.tar.xz |
Fix #7165: Missed 'Append() --> push_back()' replacement
-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 35c7ce8ae..2bf862a4f 100644 --- a/src/network/core/host.cpp +++ b/src/network/core/host.cpp @@ -76,7 +76,7 @@ static void NetworkFindBroadcastIPsInternal(NetworkAddressList *broadcast) // BE memset(&address, 0, sizeof(address)); ((sockaddr_in*)&address)->sin_addr.s_addr = htonl(ip | ~netmask); NetworkAddress addr(address, 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); } if (read < 0) { break; |