And the same another time (Thanks coffee)

This commit is contained in:
def 2014-11-15 19:04:29 +01:00
parent 56fbd92be9
commit c79a7eba7a

View file

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