From 5eaad1b92e9614e489185e977dc949331f1504b0 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sun, 4 Sep 2016 18:38:49 +0800 Subject: [PATCH] again fix headerSize --- components/openmw-mp/Packets/BasePacket.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/openmw-mp/Packets/BasePacket.hpp b/components/openmw-mp/Packets/BasePacket.hpp index d2d1c0d3f..a0410e027 100644 --- a/components/openmw-mp/Packets/BasePacket.hpp +++ b/components/openmw-mp/Packets/BasePacket.hpp @@ -35,7 +35,7 @@ namespace mwmp static size_t headerSize() { - return (sizeof(packetID) + RakNet::RakNetGUID::size()); // packetID + RakNetGUID (uint64_t) + return (size_t)(1 + RakNet::RakNetGUID::size()); // packetID + RakNetGUID (uint64_t) } unsigned char GetPacketID()