mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[raknet] Match BitStream::Write(...)
This commit is contained in:
parent
22913217e6
commit
3fc0a1ed5d
@ -164,7 +164,7 @@ void BitStream::Reset( void )
|
|||||||
// Write an array or casted stream
|
// Write an array or casted stream
|
||||||
void BitStream::Write( const char* input, const int numberOfBytes )
|
void BitStream::Write( const char* input, const int numberOfBytes )
|
||||||
{
|
{
|
||||||
if (numberOfBytes==0)
|
if (numberOfBytes==0 || input==0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Optimization:
|
// Optimization:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user