From 6201e48501b7db6be71a0e957fe64966c00b98fd Mon Sep 17 00:00:00 2001 From: Azaezel Date: Sun, 26 Apr 2015 20:25:40 -0500 Subject: [PATCH] crash out on net stream leaks. causes a fatal assertion when bitstream is passed an int value it cannot transmit given the provided bit length, and reports what the value and count were, respectively --- Engine/source/core/stream/bitStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/core/stream/bitStream.cpp b/Engine/source/core/stream/bitStream.cpp index 4ea46b6f5..f80389640 100644 --- a/Engine/source/core/stream/bitStream.cpp +++ b/Engine/source/core/stream/bitStream.cpp @@ -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);