From bcec2c6018ae57589b0018e2525026077c41948d Mon Sep 17 00:00:00 2001 From: WPMGPRoSToTeMa Date: Mon, 26 Oct 2015 20:11:54 +0300 Subject: [PATCH] Fixed bug in Netchan_Validate overlap check: added check for fragment availability --- rehlds/engine/net_chan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rehlds/engine/net_chan.cpp b/rehlds/engine/net_chan.cpp index a2c42ca..8154082 100644 --- a/rehlds/engine/net_chan.cpp +++ b/rehlds/engine/net_chan.cpp @@ -668,7 +668,7 @@ qboolean Netchan_Validate(netchan_t *chan, qboolean *frag_message, unsigned int // fragment overlaps next stream's fragment or placed after it for (int j = i + 1; j < MAX_STREAMS; j++) { - if (frag_end > frag_offset[j]) // don't add msg_readcount for comparison + if (frag_end > frag_offset[j] && frag_message[j]) // don't add msg_readcount for comparison return FALSE; } #endif // REHLDS_FIXES