فهرست منبع

Fixed a typo where the value of outBytesWritten was being clamped incorrectly.

Brian Smith 7 سال پیش
والد
کامیت
b8959e2bbb
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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();