mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Fix for Issue #111 for BitStream Issues
This commit is contained in:
parent
70415d0787
commit
1a3501440f
7 changed files with 18 additions and 15 deletions
|
|
@ -336,6 +336,8 @@ S32 BitStream::readInt(S32 bitCount)
|
|||
|
||||
void BitStream::writeInt(S32 val, S32 bitCount)
|
||||
{
|
||||
AssertWarn((bitCount == 32) || ((val >> bitCount) == 0), "BitStream::writeInt: value out of range");
|
||||
|
||||
val = convertHostToLEndian(val);
|
||||
writeBits(bitCount, &val);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue