mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-28 11:03:49 +00:00
Merge pull request #1286 from Azaezel/NoMRBit
crash out on net stream leaks.
This commit is contained in:
commit
b3170bcddf
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ S32 BitStream::readInt(S32 bitCount)
|
|||
|
||||
void BitStream::writeInt(S32 val, S32 bitCount)
|
||||
{
|
||||
AssertWarn((bitCount == 32) || ((val >> bitCount) == 0), "BitStream::writeInt: value out of range");
|
||||
AssertFatal((bitCount == 32) || ((val >> bitCount) == 0), avar("BitStream::writeInt: value out of range: %i/%i (%i bits)", val, 1 << bitCount, bitCount));
|
||||
|
||||
val = convertHostToLEndian(val);
|
||||
writeBits(bitCount, &val);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue