2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

Merge pull request #86 from WPMGPRoSToTeMa/master

Fixed bug in Netchan_Validate overlap check: added check for fragment…
This commit is contained in:
theAsmodai 2015-10-26 20:35:10 +03:00
commit 9e1f9c63ef

View File

@ -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