summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-11-15 07:00:59 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-11-15 07:00:59 +0100
commit6c56cfd9d0954dde4fa13d2c81ef3eb6f1881156 (patch)
treec611e342097594fc654421b6ab05bc44a484e4af /common
parent96c08734ad0501d2dda58dcd2a617f149e7159be (diff)
Fix bug in Message::LoginResponse::serialize().
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);
}