Core/Objects: fixed packet guid writing

This commit is contained in:
Ovahlord committed 2023-12-10 03:29:23 +01:00
1 parent 4bc6115d4e
commit df646fbe6a
2 files changed
+14 -3

No files matched your search

@@ -117,6 +117,12 @@ ByteBuffer& operator<<(ByteBuffer& buf, PackedGuid const& guid)
return buf;
}
ByteBuffer& operator<<(ByteBuffer& buf, PackedGuidWriter const& guid)
{
buf.appendPackGUID(guid.Guid.GetRawValue());
return buf;
}
ByteBuffer& operator>>(ByteBuffer& buf, PackedGuidReader const& guid)
{
buf.readPackGUID(reinterpret_cast<uint64&>(guid.Guid));