Skip to content

Commit

Permalink
Fix OpenTTD#7165: Missed 'Append() --> push_back()' replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
stormcone committed Mar 26, 2019
1 parent a065d46 commit cfb60bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/core/host.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit cfb60bf

Please sign in to comment.