[refactor] Define MessageStartChars as std::array

This commit is contained in:
TheCharlatan
2023-09-12 13:01:07 +02:00
parent 37e2b01113
commit 9be330b654
10 changed files with 19 additions and 19 deletions

View File

@@ -92,7 +92,7 @@ const static std::vector<std::string> g_all_net_message_types{
CMessageHeader::CMessageHeader(const MessageStartChars& pchMessageStartIn, const char* pszCommand, unsigned int nMessageSizeIn)
{
memcpy(pchMessageStart, pchMessageStartIn, MESSAGE_START_SIZE);
pchMessageStart = pchMessageStartIn;
// Copy the command name
size_t i = 0;