1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-06 17:15:35 +00:00

fix header size

This commit is contained in:
Koncord 2016-08-15 07:52:54 +08:00
parent c695923825
commit 32a2327f59

View file

@ -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: