diff --git a/src/server/network/protocol/protocol.cpp b/src/server/network/protocol/protocol.cpp index fa5b88780af..0e19eed14f4 100644 --- a/src/server/network/protocol/protocol.cpp +++ b/src/server/network/protocol/protocol.cpp @@ -197,7 +197,7 @@ void Protocol::XTEA_encrypt(OutputMessage &outputMessage) const { XTEA_transform(buffer, messageLength, true); } -bool Protocol::XTEA_decrypt(NetworkMessage& msg) const { +bool Protocol::XTEA_decrypt(NetworkMessage &msg) const { uint16_t msgLength = msg.getLength() - (checksumMethod == CHECKSUM_METHOD_NONE ? 2 : 6); if ((msgLength % 8) != 0) { return false;