From b0ebca9d29765fcf92a1e1caf99256160f0ae8a2 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Sun, 12 Jun 2011 13:14:50 +0200 Subject: [PATCH] Minor fix in UdpSocket::Send(Packet) --- src/SFML/Network/UdpSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }