diff --git a/src/server/network/protocol/protocol.cpp b/src/server/network/protocol/protocol.cpp index 0e19eed14f4..72d6e8f3195 100644 --- a/src/server/network/protocol/protocol.cpp +++ b/src/server/network/protocol/protocol.cpp @@ -153,7 +153,8 @@ void Protocol::XTEA_transform(uint8_t* buffer, size_t messageLength, bool encryp std::ranges::copy_n(buffer + readPos, 8, tempBuffer.begin()); // Convert bytes to uint32_t considering little-endian order - std::array bytes0, bytes1; + std::array bytes0; + std::array bytes1; std::copy_n(tempBuffer.begin(), 4, bytes0.begin()); std::copy_n(tempBuffer.begin() + 4, 4, bytes1.begin());