Skip to content

Commit

Permalink
Fix incorrect offset checking in handling of NETMSG_REQUEST_MAP_DATA
Browse files Browse the repository at this point in the history
  • Loading branch information
heinrich5991 committed Nov 19, 2014
1 parent 7747870 commit 51af0b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/server/server.cpp
Expand Up @@ -845,8 +845,8 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
return;

int Chunk = Unpacker.GetInt();
int ChunkSize = 1024-128;
int Offset = Chunk * ChunkSize;
unsigned int ChunkSize = 1024-128;
unsigned int Offset = Chunk * ChunkSize;
int Last = 0;

// drop faulty map data requests
Expand Down

0 comments on commit 51af0b8

Please sign in to comment.