Explorar o código

Merge pull request #2106 from block8437/development

Fixed a typo where the value of outBytesWritten was being clamped incorrectly.
Areloch %!s(int64=7) %!d(string=hai) anos
pai
achega
48f50d19c3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Engine/source/platform/platformNet.cpp

+ 1 - 1
Engine/source/platform/platformNet.cpp

@@ -1672,7 +1672,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();