浏览代码

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();