Skip to content

Commit

Permalink
fixed a server crash
Browse files Browse the repository at this point in the history
  • Loading branch information
oy committed Nov 20, 2014
1 parent 7747870 commit a766cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/server/server.cpp
Original file line number Diff line number Diff line change
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

2 comments on commit a766cb4

@TheAnister
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@TheAnister
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

Please sign in to comment.