mirror of
https://github.com/overte-org/overte.git
synced 2025-06-05 16:30:39 +02:00
fix packet size of assignment packet
This commit is contained in:
parent
287bead0b7
commit
f60cbed709
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ int main(int argc, const char* argv[]) {
|
|||
UDPSocket serverSocket(ASSIGNMENT_SERVER_PORT);
|
||||
|
||||
int numHeaderBytes = numBytesForPacketHeader((unsigned char*) &PACKET_TYPE_SEND_ASSIGNMENT);
|
||||
unsigned char assignmentPacket[numHeaderBytes + sizeof(char)];
|
||||
unsigned char assignmentPacket[MAX_PACKET_SIZE_BYTES];
|
||||
populateTypeAndVersion(assignmentPacket, PACKET_TYPE_SEND_ASSIGNMENT);
|
||||
|
||||
while (true) {
|
||||
|
|
Loading…
Reference in a new issue