From 32a2327f59a9242e3f4cee53cfd6933f40b0e4b7 Mon Sep 17 00:00:00 2001 From: Koncord Date: Mon, 15 Aug 2016 07:52:54 +0800 Subject: [PATCH] fix header size --- components/openmw-mp/Packets/BasePacket.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/openmw-mp/Packets/BasePacket.hpp b/components/openmw-mp/Packets/BasePacket.hpp index fc5b371e3..89a69e39d 100644 --- a/components/openmw-mp/Packets/BasePacket.hpp +++ b/components/openmw-mp/Packets/BasePacket.hpp @@ -33,9 +33,9 @@ namespace mwmp void SetSendStream(RakNet::BitStream *bitStream); void SetStreams(RakNet::BitStream *inStream, RakNet::BitStream *outStream); - size_t headerSize() + static const size_t headerSize() { - return 9; // 9 == packetID + RakNetGUID (uint64_t) + return (sizeof(packetID) + RakNet::RakNetGUID::size()); // packetID + RakNetGUID (uint64_t) } protected: