mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #2106 from block8437/development
Fixed a typo where the value of outBytesWritten was being clamped incorrectly.
This commit is contained in:
parent
840d53c283
commit
27446b1d6a
|
|
@ -1706,7 +1706,7 @@ Net::Error Net::send(NetSocket handleFd, const U8 *buffer, S32 bufferSize, S32 *
|
||||||
|
|
||||||
if (outBytesWritten)
|
if (outBytesWritten)
|
||||||
{
|
{
|
||||||
*outBytesWritten = outBytesWritten < 0 ? 0 : bytesWritten;
|
*outBytesWritten = *outBytesWritten < 0 ? 0 : bytesWritten;
|
||||||
}
|
}
|
||||||
|
|
||||||
return PlatformNetState::getLastError();
|
return PlatformNetState::getLastError();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue