Commit 6faa54a3 authored by Chen Bill's avatar Chen Bill

add padding member to STOC_HS_PlayerEnter

parent 269bac60
......@@ -158,7 +158,7 @@ constexpr int SIZE_STOC_CHAT = (LEN_CHAT_PLAYER + LEN_CHAT_MSG) * sizeof(uint16_
struct STOC_HS_PlayerEnter {
uint16_t name[20];
unsigned char pos;
// byte padding[1]
unsigned char padding; // only for padding
};
check_trivially_copyable(STOC_HS_PlayerEnter);
static_assert(sizeof(STOC_HS_PlayerEnter) == 42, "size mismatch: STOC_HS_PlayerEnter");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment