summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/message.cpp b/common/message.cpp
index 6e1901d..9dc5561 100644
--- a/common/message.cpp
+++ b/common/message.cpp
@@ -58,7 +58,7 @@ Message::LoginResponse::LoginResponse(bool ok) : Base(Types::LoginResponse), log
std::pair<uint8_t*, std::size_t> Message::LoginResponse::serialize() {
uint8_t* buf = new uint8_t[1];
- buf[1] = uint8_t(login_ok);
+ buf[0] = uint8_t(login_ok);
return std::pair<uint8_t*, std::size_t>(buf, 1);
}