From a3e26a21a7d18a0f469f9bf170a0024933a21a19 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 21 Oct 2024 02:30:45 +0300 Subject: [PATCH] engine: common: net_chan: as we expect pfnBlockSize to be always set, use it to determine if netchan was initialized or not --- engine/common/net_chan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/common/net_chan.c b/engine/common/net_chan.c index fe2d1dd8..f6f0d275 100644 --- a/engine/common/net_chan.c +++ b/engine/common/net_chan.c @@ -1521,6 +1521,9 @@ void Netchan_TransmitBits( netchan_t *chan, int length, byte *data ) return; } + if( chan->pfnBlockSize == NULL ) // not initialized + return; + // if the remote side dropped the last reliable message, resend it send_reliable = false;