engine: common: net_chan: as we expect pfnBlockSize to be always set, use it to determine if netchan was initialized or not

This commit is contained in:
Alibek Omarov 2024-10-21 02:30:45 +03:00
parent d0f3a6f74b
commit a3e26a21a7

View file

@ -1521,6 +1521,9 @@ void Netchan_TransmitBits( netchan_t *chan, int length, byte *data )
return; return;
} }
if( chan->pfnBlockSize == NULL ) // not initialized
return;
// if the remote side dropped the last reliable message, resend it // if the remote side dropped the last reliable message, resend it
send_reliable = false; send_reliable = false;