[raknet] Match BitStream::Write(...)

This commit is contained in:
RD42 2024-08-24 23:35:32 +08:00
parent 22913217e6
commit 3fc0a1ed5d

View File

@ -164,7 +164,7 @@ void BitStream::Reset( void )
// Write an array or casted stream
void BitStream::Write( const char* input, const int numberOfBytes )
{
if (numberOfBytes==0)
if (numberOfBytes==0 || input==0)
return;
// Optimization: