Browse Source

Fix compilation with MSVC

NX 6 years ago
parent
commit
5003674f56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Native/enet.h

+ 1 - 1
Source/Native/enet.h

@@ -1160,7 +1160,7 @@ extern "C" {
 			packet->data = (enet_uint8*)packet + sizeof(ENetPacket);
 
 			if (data != NULL)
-				memcpy(packet->data, data + dataOffset, dataLength - dataOffset);
+				memcpy(packet->data, (enet_uint32*)data + dataOffset, dataLength - dataOffset);
 		}
 
 		packet->referenceCount = 0;