diff --git a/src/SFML/Network/UdpSocket.cpp b/src/SFML/Network/UdpSocket.cpp index 36b1f84e..3eed3b35 100644 --- a/src/SFML/Network/UdpSocket.cpp +++ b/src/SFML/Network/UdpSocket.cpp @@ -168,7 +168,7 @@ Socket::Status UdpSocket::Send(Packet& packet, const IpAddress& remoteAddress, u const char* data = packet.OnSend(size); // Send it - return Send(data, std::min(size, static_cast(MaxDatagramSize)), remoteAddress, remotePort); + return Send(data, size, remoteAddress, remotePort); }