From 27446b1d6a0773b2e5054e15f43679f342625325 Mon Sep 17 00:00:00 2001 From: Areloch Date: Sat, 28 Oct 2017 00:38:19 -0500 Subject: [PATCH] Merge pull request #2106 from block8437/development Fixed a typo where the value of outBytesWritten was being clamped incorrectly. --- Engine/source/platform/platformNet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/platform/platformNet.cpp b/Engine/source/platform/platformNet.cpp index 4d5b6ca18e..3207303195 100644 --- a/Engine/source/platform/platformNet.cpp +++ b/Engine/source/platform/platformNet.cpp @@ -1706,7 +1706,7 @@ Net::Error Net::send(NetSocket handleFd, const U8 *buffer, S32 bufferSize, S32 * if (outBytesWritten) { - *outBytesWritten = outBytesWritten < 0 ? 0 : bytesWritten; + *outBytesWritten = *outBytesWritten < 0 ? 0 : bytesWritten; } return PlatformNetState::getLastError();