mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-01 01:25:38 +03:00
Fixed bug in Netchan_Validate overlap check: added check for fragment availability
This commit is contained in:
parent
446fe8896b
commit
bcec2c6018
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user