mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
And the same another time (Thanks coffee)
This commit is contained in:
parent
56fbd92be9
commit
c79a7eba7a
|
@ -999,7 +999,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
|
|||
}
|
||||
|
||||
// drop faulty map data requests
|
||||
if(Chunk < 0 || Offset > m_CurrentMapSize)
|
||||
if(Chunk < 0 || Offset < 0 || Offset > m_CurrentMapSize)
|
||||
return;
|
||||
|
||||
if(Offset+ChunkSize >= m_CurrentMapSize)
|
||||
|
|
Loading…
Reference in a new issue